Am 2006-09-21 15:37:56, schrieb 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/YYYY) as well?

----8<----------------------------------------------------------
#/etc/profile

LOGINTIME=$(date "+%Y-%m-%d %H:%M:%S")

echo "The User  ${LOGNAME}  has loged at ${LOGINTIME}." |\
    sendmail -f [EMAIL PROTECTED]  [EMAIL PROTECTED]
----8<----------------------------------------------------------

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to