Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Need Function for Timing out shell commandsby cdarke (Prior) |
on Sep 15, 2011 at 07:40 UTC ( [id://926088]=note: print w/replies, xml ) | Need Help?? |
I need the return value from the shell programm You cannot use return from a main program, exit should be used instead (did you use warnings and strict?). Problem with exit though is that you can only return a number (between 0..255), not text. If you must return text: Replace return $status with print $status In the shell (Bash or Korn):
In Section
Seekers of Perl Wisdom
|
|