You can use IPC::Run's run method instead of system. and set a timeout.
In reply to Re: Running 'top' command (of linux) for few minutes and then come out of system command (of perl)
by vinoth.ree
in thread Running 'top' command (of linux) for few minutes and then come out of system command (of perl)
by Striker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |