Date sent: Fri, 20 Dec 2002 13:00:59 -0500
From: Ian Zapczynski <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: how to use alarm() to properly time out a connection?
> I need to use alarm to time out a connection to an SFTP server if the
> connection hangs (I was able to reproduce such a hang using the Secure
> Shell Server for Windows, so I thought it would be nice if my script
> assumed this was a possibility).
Is your script running under some Unix or under Windows?
See
perldoc perlport
...
alarm SECONDS
alarm Not implemented. (Win32)
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]