> if [ some case ]; then
if [ "$(hostname -s)" = "puter" ]; then
echo running
fi
I'd check how the hostname command runs on your computer,
See what happens on my F8 system:
[dennis@confianza ~]$ hostname
confianza
[dennis@confianza ~]$ hostname -s
localhost
[dennis@confianza ~]$
the -s option returns 'localhost' so it will never = the name of your computer.
Dennis
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya -
http://correo.yahoo.com.mx/