From: Geoff Wing <gcw@zsh.org>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: Why can't I get my remote host into a variable?
Date: Thu, 1 Dec 2005 11:51:09 +1100 [thread overview]
Message-ID: <20051201005109.GA6312@primenet.com.au> (raw)
In-Reply-To: <438E4667.6000307@tntluoma.com>
On Thursday 2005-12-01 11:40 +1100, Lists output:
:Zsh 4.2.5 on FreeBSD. I'm ssh'ing into the FreeBSD machine.
You're presuming that the utmp/x is updated by the time zsh runs.
I wouldn't. It's most likely to be asynchronous.
Instead, see which environmental variables sshd provides for you:
i.e. check if SSH_CLIENT or SSH_CONNECTION is available to you
and parse one of them.
Regards,
Geoff
prev parent reply other threads:[~2005-12-01 0:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-01 0:40 Lists
2005-12-01 0:51 ` Geoff Wing [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051201005109.GA6312@primenet.com.au \
--to=gcw@zsh.org \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).