in reply to Spawned process exit status
Because system() and backticks block SIGINT and SIGQUIT, killing the p +rogram they're running doesn't actually interrupt your program. @args = ("command", "arg1", "arg2"); system(@args) == 0 or die "system @args failed: $?" You can check all the failure possibilities by inspecting $? like this +: $exit_value = $? >> 8; $signal_num = $? & 127; $dumped_core = $? & 128;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Spawned process exit status
by Anonymous Monk on Jun 22, 2005 at 19:45 UTC | |
by waswas-fng (Curate) on Jun 23, 2005 at 16:16 UTC |