Hello all,

I'm working on a python script at the moment that will write the date and
location from which I log in each time I do so.  However, I've not found
an easy way to get the IP address or hostname from which I'm connecting
that is consistent across Un*ces (Linux and FreeBSD in my case).  I've
thought about parsing the information out of finger output which is
possible but kinda annoying.  The other option I've found is using the
output of last -1 <username>, but if the hostname is very long, I can't
get all of it and would like to.  

I have found that if I'm using ssh or my shell is tcsh, I can get the
full address from and environment variable, but I almost never use tcsh
<grin> and don't ssh to my machine when I'm behind my ip-masq at home.

So, any ideas?

Thanks,
Jonathan Arehart
[EMAIL PROTECTED]

P.S.  Sorry if you get duplicate copies, one from each list...  :)

---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to