Mailinglist Archive: opensuse-buildservice (213 mails)

< Previous Next >
Re: [opensuse-buildservice] rpmlint and {non-,}executable-crontab-file
  • From: Ludwig Nussel <ludwig.nussel@xxxxxxx>
  • Date: Tue, 2 Jun 2009 15:38:30 +0200
  • Message-id: <200906021538.30761.ludwig.nussel@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
List Navigation