Yotam Rubin wrote:
>
> 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
>
I've just tried this on RH Linux and Solaris both with bash (but different bash
version). Some logins I have on those machines are as root and some as a regular
user. Some of the logins yielded the expected output from "echo $REMOTEHOST" but
some didn't produce any output. Can't find the reason for that (and I dont have
time to delve into it now...).
Besides, AFAIK, enviroment variables are all shell dependant as they are created
by the shell. Some might be completely standard, like TERM, but they are all to
the mercy of the shell. (Ofcourse, I would love to be corrected or better
rephrased :-) .
Boaz.
--
/"\
\ / ASCII Ribbon Campaign
x Against HTML Mail
/ \
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]