[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash prompt
- To: ILUG <linux-il(at-nospam)linux.org.il>
- Subject: Re: Bash prompt
- From: Yotam Rubin <yotam(at-nospam)makif.omer.k12.il>
- Date: Sun, 11 Mar 2001 14:24:22 +0200
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <3AAB6360.51C8EC63@linuxqa.com>; from boaz@il.linuxqa.com on Sun, Mar 11, 2001 at 01:37:04PM +0200
- Mail-Followup-To: ILUG <linux-il@linux.org.il>
- References: <3AAB5AF9.D2C8C1D7@canaan.co.il> <3AAB6360.51C8EC63@linuxqa.com>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Mutt/1.3.15i
Hello,
The environment variable $REMOTEHOST is not shell Dependant.
This variable is added by the program 'login'. The shell should not even
know that it's being ran remotely. A sane telnetd should fork login, so
you can rely on the $REMOTEHOST variable to exist.
Regards, Yotam Rubin
On Sun, Mar 11, 2001 at 01:37:04PM +0200, Boaz Rymland wrote:
> 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
>
=================================================================
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