Good day ;-)
On Wed, Jul 11, 2001 at 09:20:08AM -0400, Bill Pierson wrote:
> 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.
$who = `w`; ? Is this what you need?
Simas Cepaitis
--
"If I have been able to see further, it was only because I
stood on the shoulders of giants"
--Isaac Newton