in reply to Re^2: perl script works at command but job does not work
in thread perl script works at command but job does not work
You mean
system($command, @args) == 0 or die "System call to $command failed: $!"
Well, I agree that $something && die whatever() is not the same thing as $something == 0 or die whatever(), but they're close enough, and after all the former seems well suited for the current situation.
Whatever, it could be interesting, and relevant, to inspect $? and the return value itself as well. Of course, it's all in the docs, which explain the whole lot far better than I ever could.
Update: hadn't noticed jonadab's update. tirwhan, don't worry it's just my fault. The current system is fine enough provided that updates are duly signaled.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: perl script works at command but job does not work
by tirwhan (Abbot) on Nov 16, 2006 at 15:38 UTC |