[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in hostname
From: |
Martin MOKREJŠ |
Subject: |
bug in hostname |
Date: |
Tue, 7 Oct 2003 16:47:46 +0200 (CEST) |
Hi,
hostname(1) does not accept -s option to print short hostname,
ie. not foo.bar.baz but only foo. It is required on Tru64Unix 5.1A
during system startup. When hostname from coreutils is found,
the system hostname is set improperly(to "-s").
Please provide full compatibility:
hostname(1) hostname(1)
NAME
hostname - Sets or displays the name of the current host system
SYNOPSIS
hostname [-s] [new_name]
DESCRIPTION
The hostname command sets or displays the name of the current host system.
If you use the -s option, the short form of the host name is displayed.
Only the superuser can set the hostname.
EXAMPLES
1. To display the short form of the local host name, enter:
$ hostname -s
host1
2. To change the name of the local host, enter:
# hostname west
addax.gsf.de# /afs/gsf.de/alpha_dux51/usr/bin/hostname --help
Usage: /afs/gsf.de/alpha_dux51/usr/bin/hostname [NAME]
or: /afs/gsf.de/alpha_dux51/usr/bin/hostname OPTION
Print or set the hostname of the current system.
--help display this help and exit
--version output version information and exit
Report bugs to <address@hidden>.
addax.gsf.de# rcmgr get HOSTNAME
addax.gsf.de
addax.gsf.de# /afs/gsf.de/alpha_dux51/usr/bin/hostname
addax.gsf.de
addax.gsf.de# /usr/sbin/hostname
addax.gsf.de
addax.gsf.de# /afs/gsf.de/alpha_dux51/usr/bin/hostname -s
addax.gsf.de# /usr/sbin/hostname
-s
addax.gsf.de#
--
Martin Mokrejs <address@hidden>, <address@hidden>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585