batkins has asked for the wisdom of the Perl Monks concerning the following question:

I'm writing a script that connects to a particular server and will be used over a dialup connection. However, if the user isn't connected to the Internet, and I try to connect to a particular host, the program just locks up.

Is there any way I can test for an Internet connection and give the user a message instead of having the script lock up?

  • Comment on Finding out if user is connected to the internet

Replies are listed 'Best First'.
Re: Finding out if user is connected to the internet
by particle (Vicar) on Dec 12, 2002 at 02:19 UTC