Script Test [OT]

Dennis Kaptain dkaptain at yahoo.com.mx
Sat Sep 6 17:00:57 UTC 2008


> > 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 at confianza ~]$ hostname
confianza
[dennis at confianza ~]$ hostname -s
localhost
[dennis at 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/ 




More information about the fedora-list mailing list