Your task is perfect for IPC::Run, try it :)
You can redirect output to a scalar, update (pump) it when you need and timeouts are supported automatically.
In reply to Re: tcpdump: setting a conditional timeout
by kappa
in thread tcpdump: setting a conditional timeout
by intranetman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |