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
QtWS25 Last Chance

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 951 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 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
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on 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

      • Login

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