Re: (no subject) another thought
"JohnH" <[email protected]> Wed, 3 Jan 2007 12:04:26 -0600
| Newsgroups | gmane.linux.redhat.release.shrike |
|---|---|
| Message-ID | <01bc01c72f61$9ba2a810$6401a8c0@3a5ah6vqcd> |
This is a multi-part message in MIME format. --===============0109155377== Content-Type: multipart/alternative; boundary="----=_NextPart_000_01B9_01C72F2F.50C7D3B0" This is a multi-part message in MIME format. ------=_NextPart_000_01B9_01C72F2F.50C7D3B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable This reminded me of something else. I used to have a basic program in = dos that would log the time and date that someone started the computer. = Is there such a thing in Linux and could it show who as well as when? JohnH [email protected] ----- Original Message -----=20 From: Gildersleeve, Mike=20 To: Discussion of Red Hat Linux 9 (Shrike)=20 Sent: Wednesday, January 03, 2007 7:38 AM Subject: RE: (no subject) 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: [email protected] = [mailto:[email protected]]On Behalf Of Harry, Hambi Sent: Wednesday, January 03, 2007 7:25 AM To: [email protected] Subject: (no subject) Hi All, Is there a way to automatically execute a command when a user logs = on to a linux?. Rgds. Harry. -------------------------------------------------------------------------= ----- --=20 Shrike-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/shrike-list -------------------------------------------------------------------------= ----- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.3/614 - Release Date: = 1/2/2007 2:58 PM ------=_NextPart_000_01B9_01C72F2F.50C7D3B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2995" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>This reminded me of something else. I = used to have=20 a basic program in dos that would log the time and date that someone = started the=20 computer. Is there such a thing in Linux and could it show who as well = as=20 when?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>JohnH</FONT></DIV> <DIV><FONT face=3DArial size=3D2><A=20 href=3D"mailto:[email protected]">[email protected]</A></FONT></DIV> <BLOCKQUOTE=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A [email protected] = href=3D"mailto:[email protected]">Gildersleeve,=20 Mike</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A = [email protected]=20 href=3D"mailto:[email protected]">Discussion of Red Hat Linux 9=20 (Shrike)</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, January 03, = 2007 7:38=20 AM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: (no subject)</DIV> <DIV><BR></DIV> <DIV><SPAN class=3D005313413-03012007><FONT face=3DArial = color=3D#0000ff size=3D2>Try=20 a cron job, every 5 min, that runs a script that runs the who = command an=20 grep for the user if the value is returned then log it to a file or=20 something. Or run a script in their .login or .profile that = dumps to a=20 .log file. Make sure that the permissions are set correct or = they may=20 wonder what the write error is all about.</FONT></SPAN></DIV> <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT = face=3DTahoma=20 size=3D2>-----Original Message-----<BR><B>From:</B>=20 [email protected] = [mailto:[email protected]]<B>On=20 Behalf Of </B>Harry, Hambi<BR><B>Sent:</B> Wednesday, January 03, = 2007 7:25=20 AM<BR><B>To:</B> [email protected]<BR><B>Subject:</B> (no=20 subject)<BR><BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D520192312-03012007>Hi = All,</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D520192312-03012007>Is = there a way=20 to automatically execute a command when a user logs on to a=20 linux?.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D520192312-03012007></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D520192312-03012007>Rgds.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D520192312-03012007></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D520192312-03012007>Harry.</SPAN></FONT></DIV></BLOCKQUOTE> <P> <HR> <P></P>-- <BR>Shrike-list mailing=20 = list<BR>[email protected]<BR>https://www.redhat.com/mailman/listinfo= /shrike-list <P> <HR> <P></P>No virus found in this incoming message.<BR>Checked by AVG Free = Edition.<BR>Version: 7.5.432 / Virus Database: 268.16.3/614 - Release = Date:=20 1/2/2007 2:58 PM<BR></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_01B9_01C72F2F.50C7D3B0-- --===============0109155377== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- Shrike-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/shrike-list --===============0109155377==--