My apologies -
I use:
$who = `whoami`;
not
$who = `who`;
Thanks,
--Bill
----- Original Message -----
From: "Simas Cepaitis" <[EMAIL PROTECTED]>
To: "Bill Pierson" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 9:33 AM
Subject: Re: PERL/Linux
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