N
Nanard
Hi,
I know how to get the the exit code of my command when I do a :
system("myCommand p1 p2")
I don't know when I run my command using :
my @list_stdout = `myCommand p1 p2`;
How to get the exit code of my command ?
If I run :
my $pid = open ( PIPE , "| myCommand p1 p2");
print PIPE "ls";
print PIPE "exit";
close PIPE;
How to know the exit code of myCommand ?
Thanks for the answers.
I know how to get the the exit code of my command when I do a :
system("myCommand p1 p2")
I don't know when I run my command using :
my @list_stdout = `myCommand p1 p2`;
How to get the exit code of my command ?
If I run :
my $pid = open ( PIPE , "| myCommand p1 p2");
print PIPE "ls";
print PIPE "exit";
close PIPE;
How to know the exit code of myCommand ?
Thanks for the answers.