write up I had a week back. You could use just the check_host procedure if you want. It is platform independant. I'm using it on Win32 at the moment, and also had the same code execute on AIX 4.3.3 with NO problem. The script essentally does a TCP connect to the machine specified.