Good morning, afternoon, or evening depending on when you read this. :o)

To aid in system administration and to track whom is accessing my servers, I wrote a 
little PERL script that is called from /etc/bashrc. As soon as someone logs in, the 
program gets the date and executes:
$who = `who`;

I then have it E-Mail me who just logged in and at what time.

I'd like to find a way to also have it report to me the IP address from where the user 
is connecting.

If someone could enlighten me as to if PERL would offer this capability, or if there 
is another linux system call that I could use, I would appreciate it. Also, if anyone 
has any suggestions on doing the same thing in a "better" way, I'm all eyes.

Thanks for your time,
--Bill

PS - Just a quick note - I've been on the list for a few weeks, and I wanted to take a 
moment and thank those of you who have vast knowledge of PERL and are willing to share 
it. Your help is appreciated.

Reply via email to