Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Redirecting stdout/stderr to pipe

by betterworld (Curate)
on Sep 19, 2005 at 11:49 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-24 06:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found