Current time: 04-19-2024, 05:54 PM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo] Receive an eMail during a SSH login
Author Message
c0urier Offline
Junior Member
*

Posts: 89
Joined: Jun 2007
Reputation: 1
Post: #3
RE: [HowTo] Receive an eMail during a SSH login
@ BeNe,

I think you've added a ` to much.

Code:
# Generate e-Mail on Login
echo 'Login on' `hostname` `date` `who`| mail -s "Login on `hostname` who | awk '{print $5}'`" YOUR@E-MAILADRESS.TLD

Shouldn't it be:

Code:
# Generate e-Mail on Login
echo 'Login on' `hostname` `date` `who`| mail -s "Login on `hostname` who | awk '{print $5}'" YOUR@E-MAILADRESS.TLD
06-29-2010 10:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [HowTo] Receive an eMail during a SSH login - c0urier - 06-29-2010 10:04 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)