Auteur: Ben Smithurst Date: À: Paul Walsh, Tibor Koleszar, mbaker, exim-users Sujet: Re: [EXIM] eximstats-html
Mark Baker wrote:
> On Tue, Mar 16, 1999 at 12:10:02PM -0000, Paul Walsh wrote:
>
>> had a look at the code. I presume "hostname -f" on some UNIX variants
>> gives the hostname.
>
> Specifically, it gives the fully qualified hostname. Hostname on its own
> gives an unqualified name.
Not here.
$ hostname
scientia.demon.co.uk
$ hostname -f
hostname: illegal option -- f
usage: hostname [-s] [name-of-host]
>> $hostname = `uname -n`;
>
> uname -n also gives the unqualified name.
Not on FreeBSD; it does the same as `hostname`. `hostname -s` gives the
unqualified name.