Thanks for the help guys . Works fine now .
Alan.
-----Original Message-----
From: Kenn Humborg [mailto:kenn at bluetree.ie]
Sent: Monday, October 18, 1999 12:41 PM
To: ilug at 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 linux.iehttp://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster at linux.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!