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; }