2 Jun
2009
2 Jun
'09
13:38
Christian wrote:
OK, would you prefer for hostname -f =>`head -n 1 /etc/HOSTNAME` and hostname -s => `head -n 1 /etc/HOSTNAME | awk -F. '{print $1}'`
read fqdn < /etc/HOSTNAME h=${fqdn%%.*} 'hostname' without parameters will not cause a DNS lookup so that would be fine as well.
is /etc/HOSTNAME available on all "Linux's" ?
No idea. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org