Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Alarm and Telnet issues

by pubscout (Initiate)
on Dec 27, 2006 at 20:04 UTC ( [id://591927]=note: print w/replies, xml ) Need Help??


in reply to Re: Alarm and Telnet issues
in thread Alarm and Telnet issues

Bummer. I guess that means that there is no trivial way to have a global timeout when using Net::Telnet.

Thanks for the help!

Replies are listed 'Best First'.
Re^3: Alarm and Telnet issues
by Anonymous Monk on Dec 28, 2006 at 01:31 UTC
    Well, no lightweight trivial way.
    use POSIX (); $SIG{USR1} = sub { ... }; unless(fork) { sleep(4); kill(POSIX::SIGUSR1(), getppid()); exit; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-03-29 16:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found