Perl Script Behaves Differently When Launched from QProcess in GUI than on Command Line

  • I run a Perl script using QProcess and it doesn't run the same way as if I run it from the Linux command line.

    setenv CLIENTS "a b c d"
    use 5.0;
    use strict;
    my $workstations = $ENV{CLIENTS};
    print  "$workstations";

    With QProcess, the output is "a".
    From the command line the output is "a b c d".

    Any ideas?

  • Can you share the QProcess code you have written to execute the script ?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.