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

Re: bash prop




Ben-Nes Michael <miki@canaan.co.il> writes:

> I wonder if any one know what bash variable contain the host i got
> connected from.

This may be an attribute of the program you connect with, not the
shell you run. Check man ssh for SSH_CLIENT if you use ssh. I am not
100% sure if that's what you mean.

> if ther5e is no such variable in bash, does other shell go it or system
> function ?

tcsh has REMOTEHOST.

-- 
Oleg Goldshmidt | ogoldshmidt@NOSPAM.computer.org 
"... We work by wit, and not by witchcraft;
 And wit depends on dilatory time." [Shakespeare]

=================================================================
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