[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash prop
- To: Ben-Nes Michael <miki(at-nospam)canaan.co.il>
- Subject: Re: bash prop
- From: Sagi Bashari <sagi(at-nospam)boom.org.il>
- Date: Sun, 11 Mar 2001 13:26:40 +0200 (IST)
- cc: ILUG <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <3AAB5AF9.D2C8C1D7@canaan.co.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
Yes,
If you're connecting thru telnet, $REMOTEHOST has the remote host,
with ssh, you have $SSH_CLIENT that contains it in this syntex: 'IP
remoteport localport' (bash2.04,openssh2.3.0p1)
P.S. you can use 'set' to see all the variables
Sagi
On Sun, 11 Mar 2001, 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 ?
> --
> --------------------------
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6925757
> Fax: 972-4-6925858
> http://www.canaan.co.il
> --------------------------
>
>
>
> =================================================================
> 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
>
>
=================================================================
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