Re: Script Test [OT]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > 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/ 

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux