D
dimsol
Hi
I have the following scenarion:
open(FILE, "some_cmd |") || die "some error message";
my $output = <FILE>;
close(FILE) || die "some error message";
The problem is that some_cmd failes (exit status 1) and prints error
message to STDOUT.
The return value of open() according to man pages is the pid of forked
process.
Now, the problem, how I can find out that some_cmd failed.
BR
Dima
I have the following scenarion:
open(FILE, "some_cmd |") || die "some error message";
my $output = <FILE>;
close(FILE) || die "some error message";
The problem is that some_cmd failes (exit status 1) and prints error
message to STDOUT.
The return value of open() according to man pages is the pid of forked
process.
Now, the problem, how I can find out that some_cmd failed.
BR
Dima