#!/bin/sh if [ $# != 2 ]; then echo "usage: $0 <host>"; exit; fi ping -c 1 $1 if [ $? == 0 ] then echo $0 is alive. else echo $0 is not answering (to ICMP echo-request). fi Noam Meltzer <[EMAIL PROTECTED]> wrote: > Hi! > I know that on Solaris the output of "ping" is "<host> is alive" or > "service not avaiable" (or something like that) > i was wandering how i can achieve such answer in linux. > > noam > > > ================================================================= > To unsubscribe, send mail to [EMAIL PROTECTED] with > the word "unsubscribe" in the message body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] -- http://www.rshell.org Join #shellcode on EFnet. [EMAIL PROTECTED] ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]