Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Is there a way to find the Remote Host in ZSH?



On Jun 29,  5:35pm, Sweth Chandramouli wrote:
> 	
> 	it looks like it; on my machine, at least, i have REMOTE_HOSTNAME
> and REMOTE_IPADDRESS defined when i log in:
> 
> (astaroth)~: set | grep 'REMOTE'
> REMOTE_HOSTNAME=simon
> REMOTE_IPADDRESS=208.135.210.91
> 
> 	those aren't being set in any of the system-wide scripts or in
> any of my personal ones, so i'm assuming that they are set by the shell.

Are they set regardless of whether you rlogin/rsh/telnet/ssh to the remote
machine?

They could be being set by the rlogin daemon or some such, before the shell
is even started.



Messages sorted by: Reverse Date, Date, Thread, Author