Current time: 12-26-2024, 11:24 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: 2 Guest(s)