|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re^2: Execute shell command, grab it's return, terminate on timeoutby Haioken (Novice) |
| on Mar 21, 2014 at 03:08 UTC ( [id://1079160]=note: print w/replies, xml ) | Need Help?? |
|
Hi Miller,
Thanks for the suggestions.
1) It's probably left over from days of developing in C for Atmel MicroControllers. Limited memory partly means declaring as few as possible variables. Probably not so much an issue with my servers having >16Gb RAM. 2) No excuse for that one. Uhhh ... made sense at the time? :o) 3) I've made this change in my live code, though I'm not sure what circumstances would call it, as the other fails get reported via:
The STDOUT data is already in @return_val (or @cmd), and the command above will give me the spawned process' exit code.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||