Okay ...the scenario was...
I telnet from my PC (remote host) to a UNIX machine with user ABC. Now I can login from another PC on the same UNIX m/c as USER ABC, I just want to know the remote host name ("who -m" ) so that I can set my DISPLAY environment to the remote host I have achieved it for the time being by putting the following in my ..cshrc (cshell) by doing setenv DISPLAY `who -m | sed 's/.*(\(.*\))$/\1/'`:0.0 -----Original Message----- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 5:12 PM To: perl beginners Cc: Shishir K. Singh Subject: Re: IP address Shishir -- Would you mind doing us the favor of restating your requirements? So far we have - remote host where the user is sitting (some N hops away) - remote host from which the user connected (0 or 1 hop) - this host when connecting remotely and all of them, of course, have various ramifications. TIA & HAND & maybe then we can help productively :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]