let's say I have three perl scripts:
perl_script_GUI.pl
perl_script_1.pl
perl_script_2.pl
I execute my GUI: "perl_script_GUI.pl", and from there I want to execute both other scripts simultaniously. I can do this by using:
my $command="perl perl_script_1.pl ";
if (system( [0,1,2], 'start cmd /k "'.$command.'"' ) != 0){
print "There was a problem executing the the script";
}
$command="perl perl_script_2.pl ";
if (system( [0,1,2], 'start cmd /k "'.$command.'"' ) != 0){
print "There was a problem executing the the script";
}
This executes each script in a new window and runs the scripts while I can do something in the GUI.
Is it possible to get the result of the script when it has finnished?