I am new to perl myself. Maybe I am missing something here, but still
$? contains the exit status of the system call. $? >> 8 will give the exact
signal with which the call exited.
0 for success and anything else for failure.
Sudarsan
insomniak wrote:
> Hi,
> What is the best way to find out if a command is suceesful/finished when
> using system();
> Im trying things like
> die if system("some command"); or warn if system("some command");
> - not really worried about why it fails only if it fails and when it has
> finished
> This works but.... I would like to be able to run the next system command
> only after the first has finished.
> I read that this could be somthing to do with wait() but I cannot find any
> exmaple to work from. Any help is much appreciated.
>
> Regards
> Mark Kneen
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]