in reply to How to determine of script executed correctly?
But it really depends on the command itself and what exit status it returns in various situations.if ($? != 0) { die "Command failed: $!"; } else { print "Command executed successfuly.\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to determine of script executed correctly?
by julio_514 (Acolyte) on Apr 20, 2012 at 21:41 UTC |