[Linux-Biella] Dove sbaglio?
Luca Bertoncello
linux@bilug.linux.it
Mon, 18 Feb 2002 14:00 +0100
Ciao a tutti!
Sono io rincretinito o e' il computer?
Ho questo script, di una semplicita' abissale:
#!/bin/sh
IP=`host <host>` (<host> e' l'host che devo testare)
NOTFOUND='Host not found.'
if test $IP = $NOTFOUND; then
echo "OK"
else
echo "KO"
fi
Se lo lancio, mi viene sempre questo errore:
[lucabert@public lucabert]$ ./t.sh
./t.sh: test: too many arguments
KO
Cosa sbaglio?
Ciao
Luca Bertoncello
(lucabert@lucabert.com)