Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Perl Script Behaves Differently When Launched from QProcess in GUI than on Command Line

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
prelqprocesscommand line
2 Posts 2 Posters 954 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DougyDrumz
    wrote on 3 Feb 2017, 00:42 last edited by
    #1

    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?

    Dougy Drumz

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dheerendra
      Qt Champions 2022
      wrote on 3 Feb 2017, 02:44 last edited by
      #2

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

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      2

      1/2

      3 Feb 2017, 00:42

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved