On Tue, 14 Oct 2003, cjackson wrote:
> Maybe it would do what you need....
>
> condition = ${run {nmap -P0 -p25 -n --host_timeout 1000 -sT $IP}{yes}{no}}
>
> Because the host_timeout is 1 second, nmap quits after 1 sec when no connection;
> ping (and maybe nc) will hang when no connection and hang the server.
At least on Linux, ping -w 1 will return on no connection. Unfortunately
the return code is the same whether a reply was recieved or not.
--
Dr. Andrew C. Aitchison Computer Officer, DPMMS, Cambridge
A.C.Aitchison@??? http://www.dpmms.cam.ac.uk/~werdna