The backtick operator returns the output of the command. The system function actually returns the exit value itself. If you want the exit value do this:
my $exit_value = system($tar_command) ; die "tar failed: ".$exit_value / 256."\n" if $exit_value != 0 ;
In reply to Re: External command execution - Strange Error - No child process
by onelesd
in thread External command execution - Strange Error - No child process
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |