hostname getting up my nose

hostname getting up my nose

Post by Steve Pel » Wed, 03 Jul 1996 04:00:00



When I boot, I get

(none)

instead of my Linux machine's hostname, even though /etc/rc.d/rc.M contains the
line:

/bin/hostname `cat /etc/HOSTNAME | cut -f1 -d .`

/etc/rc.d/rc.inet1 contains the line:

HOSTNAME=`cat /etc/HOSTNAME`

*and* the file /etc/HOSTNAME exists and contains the machine's name.

Does anyone know why this is?

Thanks for any help
steve

---------------------------------------------------------------------

             |  Building 149,          |
             |  13th Street,           |  Tel: (617) 726-7800
             |  Charlestown, MA 02129  |  Fax: (617) 726-7808
---------------------------------------------------------------------

 
 
 

hostname getting up my nose

Post by jo.. » Thu, 04 Jul 1996 04:00:00


: When I boot, I get
: (none)
: instead of my Linux machine's hostname, even though /etc/rc.d/rc.M contains the
: /bin/hostname `cat /etc/HOSTNAME | cut -f1 -d .`
: /etc/rc.d/rc.inet1 contains the line:
: HOSTNAME=`cat /etc/HOSTNAME`
: *and* the file /etc/HOSTNAME exists and contains the machine's name.
: Does anyone know why this is?

Somewhere in there (after the HOSTNAME= line) you have to export the the
variable to the global environment.  Add the following line.

export HOSTNAME

__