[Linux-Biella] Dove sbaglio?

Claudio M. linux@bilug.linux.it
Mon, 18 Feb 2002 14:04:15 +0100


On Mon, 18 Feb 2002 14:00 +0100
Luca Bertoncello <lucabert@lucabert.com> wrote:

> #!/bin/sh
> 
> IP=`host <host>`     (<host> e' l'host che devo testare)
> NOTFOUND='Host not found.'
> 
if [$IP = $NOTFOUND] then
>   echo "OK"
> else
>   echo "KO"
> fi

Bye

-- 
Per cortesia niente allegati word, solo in formato ASCII (.txt) 
oppure Rich Text Format (.rtf)
--
Linux Registered User     #151147  |  Home Page    http://www.bilug.linux.it
Linux registered Machine  #66331   |  ICQ Number   53293810
GPG key http://www.bilug.linux.it/~cmaffio/key-bilug.asc