RE: [OT] Re: email notifications when users login
On 2006-09-21 15:37:56 -0400 Morgan Walker <jmw@M-CAM.COM> 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/YYYY) as well?
echo "The User ${LOGNAME} has loged in on `date`." |\ ...
(those are backticks around "date")
Run "date --help" to see how to change the date format if you want
something different than the default.
--
Hubert Chan - email & Jabber: hubert@uhoreg.ca - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA (Key available at wwwkeys.pgp.net)
Fingerprint: 96C5 012F 5F74 A5F7 1FF7 5291 AF29 C719 124B 61FA
Reply to: