http://www.perlmonks.org?node_id=493182


in reply to Re: Redirecting stdout/stderr to pipe
in thread Redirecting stdout/stderr to pipe

The code act as an information collector for a system administrator. It is initiated remotely via Net::SSH::Perl, and must therefore automatically manage the maximum allowed nr. of seconds that a command may run, or the amount of stdout or stderr that can be produced.

For example, it may not assume that "who failedlogin" will be just work, and prevent it from running for say longer than 60secs and 5000 lines of stdout/stderr.

-0xbeef