AW: Re: [Linux-Biella] Dove sbaglio?
Claudio M.
linux@bilug.linux.it
Mon, 18 Feb 2002 14:18:12 +0100
On Mon, 18 Feb 2002 14:13 +0100
Luca Bertoncello <lucabert@lucabert.com> wrote:
> Questo e' l'errore con la tua modifica:
>
> [lucabert@public lucabert]$ ./t.sh
> ./t.sh: line 8: syntax error near unexpected token `else'
> ./t.sh: line 8: `else'
Hai ragione, scusa, questo funge
#!/bin/sh
IP=`host claudio.bmm.it`
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