in reply to system and $?
If you need the "result" of the system command, get the return value:system "true"; echo $? & 127;
The results are -1, 0 and 256. Not really good, but here you get -1 in case of any kind of execution error.print system "does-not-exist"; print system "true"; print system "false";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system and $?
by rovf (Priest) on Aug 26, 2009 at 12:35 UTC |