G
Greg G
I've got some code that looks like this:
@args = ("/usr/local/bin/myprogram ", " -a ", $param1, " -b ",
$param2);
print STDERR @args, "\n";
$rc = 0xffff & system (@args);
It *should* work, but it is patently ignoring the return code from
myprogram. In fact, the return code is 255, which seems to translate to
"command failed". If I capture the output from stderr and run it from
the command line, it works fine.
In fact, this works fine:
$capture = `@args`;
print STDOUT $capture,"\n";
I get the output from the myprogram.
Any ideas what's happening to me here?
-Greg G
@args = ("/usr/local/bin/myprogram ", " -a ", $param1, " -b ",
$param2);
print STDERR @args, "\n";
$rc = 0xffff & system (@args);
It *should* work, but it is patently ignoring the return code from
myprogram. In fact, the return code is 255, which seems to translate to
"command failed". If I capture the output from stderr and run it from
the command line, it works fine.
In fact, this works fine:
$capture = `@args`;
print STDOUT $capture,"\n";
I get the output from the myprogram.
Any ideas what's happening to me here?
-Greg G