[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash prop



Ben-Nes Michael wrote:
> 
> Hi All
> 
> I wonder if any one know what bash variable contain the host i got
> connected from.
> 
> if ther5e is no such variable in bash, does other shell go it or system
> function ?
> --

If he's aint using tcsh or ssh, a workaround (though not the most beautiful, I
admit) is checking $DISPLAY, which will be set to the remote client name (not
IP), with additional data. This is set up by telnet, if you use it.

Boaz.
-- 
/"\
\ /     ASCII Ribbon Campaign
 x      Against HTML Mail
/ \

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il