Sounds good to me. -----Original Message----- From: shrike-list-bounces@xxxxxxxxxx [mailto:shrike-list-bounces@xxxxxxxxxx]On Behalf Of nkandah@xxxxxxxxx Sent: Wednesday, January 03, 2007 1:53 PM To: Discussion of Red Hat Linux 9 (Shrike) Subject: Re: RE: (no subject) Why not add the command at the end of /etc/profile It'll be executed whenever anyone logs onto the linux box. That way users won't be able to circumvent the command by editing their .profile Nabeel ----- Original Message ----- From: "Gildersleeve, Mike" <mgilder@xxxxxxxx> Date: Wednesday, January 3, 2007 8:39 am Subject: RE: (no subject) To: "Discussion of Red Hat Linux 9 (Shrike)" <shrike-list@xxxxxxxxxx> > Try a cron job, every 5 min, that runs a script that runs the who > command an grep for the user if the value is returned then log it > to a file or something. Or run a script in their .login or > .profile that dumps to a .log file. Make sure that the permissions > are set correct or they may wonder what the write error is all about. > > -----Original Message----- > From: shrike-list-bounces@xxxxxxxxxx [mailto:shrike-list- > bounces@xxxxxxxxxx]On Behalf Of Harry, Hambi > Sent: Wednesday, January 03, 2007 7:25 AM > To: shrike-list@xxxxxxxxxx > Subject: (no subject) > > > Hi All, > Is there a way to automatically execute a command when a user logs > on to a linux?. > > Rgds. > > Harry. > > -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list