Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Redirecting stdout/stderr to pipe

by betterworld (Curate)
on Sep 19, 2005 at 11:49 UTC ( #493129=note: print w/replies, xml ) Need Help??


in reply to Redirecting stdout/stderr to pipe

As for the runtime restriction, you may use bash's ulimit command if you are running Unix. However, you can only restrict the cpu time with ulimit, not the idle time.

Replies are listed 'Best First'.
Re^2: Redirecting stdout/stderr to pipe
by 0xbeef (Hermit) on Sep 19, 2005 at 15:06 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://493129]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-09-26 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (116 votes). Check out past polls.

    Notices?