RE: [ILUG] Re: Uptime

From: Smith, Alan (alan.smith at domain sap.com)
Date: Mon 18 Oct 1999 - 12:54:56 IST


Thanks for the help guys . Works fine now .

Alan.

-----Original Message-----
From: Kenn Humborg [mailto:kenn at domain bluetree.ie]
Sent: Monday, October 18, 1999 12:41 PM
To: ilug at domain linux.ie
Subject: Re: [ILUG] Re: Uptime

On Mon, Oct 18, 1999 at 12:17:15PM +0100, John P . Looney wrote:
> On Mon, Oct 18, 1999 at 01:01:13PM +0200, Smith, Alan mentioned:
> > Stupid question , but what do I need to change on my linux box to show
the
> > uptime every time a user logs in ?? (RH6 btw)
> >
> > Regards & Thanks ,
> >
> > Alan.
>
> echo "uptime" >> /etc/profile

If you've got a /etc/profile.d directory, then it's better to do:

# echo uptime > /etc/profile.d/uptime.sh
# chmod a+x /etc/profiled./uptime.sh

All .sh scripts in /etc/profile.d are run by /etc/profile.
Doing it this way means that your changes won't be
clobbered by an upgrade (nor will to have to compare
.rpmsave files and merge changes manually).

Later,
Kenn

-- 
Irish Linux Users' Group: ilug at domain linux.ie
http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster at domain linux.ie


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:45 GMT