Check this out : Re: Re (tilly) 3: Seeking Feed back. It'll solve your problem :)
Basically, you need to check the actual return value of the system call, which is stored in $?.
Azatoth a.k.a Captain Whiplash
Make Your Die Messages Full of Wisdom!In reply to Re: Handling weird return values with or die
by azatoth
in thread Handling weird return values with or die
by mvaline
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |