Hi, Just to share the alternative ping I'm successfully using with PCs running Windows XP that only have the ssh port open for cygwin sshd. The server is running on Debian.
It tries to connect to port 22 (sshd) with netcat. On connection it runs /bin/true and exits with 0. If no connection is possible then it exists with code 1. -w is the time you are willing to wait for a connection to be established. Hope it helps other users. Friendly, Eduardo. #!/bin/bash nc -w 2 -c /bin/true $1 22 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
