RE: [OT] Re: email notifications when users login

2006-09-21 Thread Hubert Chan
On 2006-09-21 15:37:56 -0400 Morgan Walker <[EMAIL PROTECTED]> wrote: Thanks Michelle that worked perfect. Is there an easy variable I could throw in there that you know off hand which would include the time (MM/DD/) as well? echo "The User ${LOGNAME} has loged in on `date`." |\ ... (th

Re: [OT] Re: email notifications when users login

2006-09-21 Thread Freddie Cash
On Thursday 21 September 2006 12:37 pm, Morgan Walker wrote: > Thanks Michelle that worked perfect. Is there an easy variable I could > throw in there that you know off hand which would include the time > (MM/DD/) as well? $( date ) will add the current date and time. You can read the man pa

Re: [OT] Re: email notifications when users login

2006-09-21 Thread Stephen Gran
This one time, at band camp, Morgan Walker said: > > Thanks Michelle that worked perfect. Is there an easy variable I could > throw in there that you know off hand which would include the time > (MM/DD/) as well? echo "The User ${LOGNAME} has logged in at $(date -R)" |\ mail -s "user lo

RE: [OT] Re: email notifications when users login

2006-09-21 Thread Morgan Walker
Thanks Michelle that worked perfect. Is there an easy variable I could throw in there that you know off hand which would include the time (MM/DD/) as well? Thanks again guys -Original Message- From: Michelle Konzack [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 6:59 P

[OT] Re: email notifications when users login

2006-09-21 Thread Michelle Konzack
Hi Morgan, Am 2006-09-18 15:34:30, schrieb Morgan Walker: > Hey guys, > > I was just wondering if there was a package/script out there that could > be used to notify the sys. admin every time a user logged into a debian > system. #/etc/profile echo "The User ${LOGNAME} has loged in." |\

[OT] Re: email notifications when users login

2006-09-21 Thread Michelle Konzack
Am 2006-09-18 15:44:26, schrieb Gregory Arntson: > Let's try not hitting the enter key this time... Morgan, if for examples > all of the users use the bash shell you could create a .bashrc that and the > end of everything would notify the intended admins when the person logged > in. From there all