I want to use the Unix command ckSum to generate a simple checksum for a file and store this for use in my program.
The system command returns success/failure {wait()} of whatever it executes but I want to get at the value...
$chkSum = system("cksum $file");
...the above returns either 0 or 256 depending on success/failure.
I think this is quite a basic thing to achieve but I'm lost.
Thanks
Mark
In reply to Capturing Results Of A System Command by heezy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |