rcs <[EMAIL PROTECTED]> writes: > #!/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 $0 should be $1, shouldn't it? -- Oleg Goldshmidt | [EMAIL PROTECTED] If it aint't broken it hasn't got enough features yet. ================================================================= 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]
