in reply to Re: system() and output
in thread system() and output

In your first suggestion, you said:

close OUTPUT returns false if $myScript fails or exits with non-zero

myScript returns 0 on success and non zero on failure, which is the opposite of what close() returns, what is returned on success of myScript and does the non-zero you mentioned are myScript exit statuses?

And another thing, in your second suggestion, does $output holds the stdout from myScript?

Thanks again

Hotshot