in reply to could not open c
This test:
if ($result >> 0)
should be
if( ( $result >> 8 ) != 0 ) {
Or more simply:
If that doesn't fix your problem, then you will need to print out the failure code (print $result >> 8) and then look that up in the documentation for the executable to determine what the errorcode means.if( $result >> 8 ) {
|
|---|