G
gary
Hi,
Is there a way to get the return code from the child process that was started with open?
open(STATUS, "mycommand |") || die "can't fork: $!";
while (<STATUS>) {
bla;
}
close STATUS || die "bad mycommand: $! $?";
but what I need is the return code from "mycommand" itself. Is there a way to do this?
thanks,
gary
Is there a way to get the return code from the child process that was started with open?
open(STATUS, "mycommand |") || die "can't fork: $!";
while (<STATUS>) {
bla;
}
close STATUS || die "bad mycommand: $! $?";
but what I need is the return code from "mycommand" itself. Is there a way to do this?
thanks,
gary