Craig Inman wrote:
>
> No, I'm not trying to capture the output of any of these. 'zowner' tells who the
> file belongs to, if it fails, it will not return any output. I have tried using
>
> if (system ("zowner $claims[0]") != 1)
> then claimsubmit the file
>
> but for some reason the 'zowner' program does not consistently returning a true 1
> or 0. The only 100% way to be sure it worked is to very that it outputs the real
> owner of the file.
The "convention" for command line programs is to return 0 (zero) for
successful execution and non-zero if unsuccessful. The entry for
system() in the perlfunc document explains how to get the reasons the
program failed from the $? variable.
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]