julio_514 has asked for the wisdom of the Perl Monks concerning the following question:
This line works fine if I called a command that does not exists (script will die), but I believe that proceeding this way do not make the script die if the command is found and called but not executed because of wrong/absent arguments...? Thanks,system($scriptA); #? == -1 ? die "Command failed: $!\n" : print "Command executed succes +sfuly\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to determine of script executed correctly?
by choroba (Cardinal) on Apr 20, 2012 at 21:31 UTC | |
by julio_514 (Acolyte) on Apr 20, 2012 at 21:41 UTC | |
|
Re: How to determine of script executed correctly?
by davies (Monsignor) on Apr 20, 2012 at 21:36 UTC |