I also responded to davido's reply above as to why system() is returning the output of the command, in addition to the exit status.
In reply to Re^2: Interacting with the shell ( backticks, system(), open -| )
by jktstance
in thread Interacting with the shell ( backticks, system(), open -| )
by jktstance
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |