Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Run Linux Command from Perl Scriptby kyle (Abbot) |
on Mar 23, 2007 at 14:08 UTC ( [id://606244]=note: print w/replies, xml ) | Need Help?? |
Have a look at the documentation for system. Unlike virtually everything else, it returns non-zero for failure, so where you say "system || print "error"", you need to have something more like:
I think right now it's telling you that it fails when it's not.
In Section
Seekers of Perl Wisdom
|
|