in reply to capture error executing a binary
Apart from that, you don't show any code, so we don't know why the perl script aborts. Maybe it's because the script is written like this:
If that's the case, all you need to do is replace "die" with "warn", and redirect the STDERR from your script into a log file -- e.g. if you are using a bash or similar type of shell:my $failure = system( "c_binary ..." ); # system returns exit status die $! if ( $failure ); # which is normally non-zero on failure
your_perl_script ... 2>> log.file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: capture error executing a binary
by tariqahsan (Beadle) on Jun 09, 2005 at 18:30 UTC |