<<< Date Index >>>     <<< Thread Index >>>

Re: text/html; mutt_bgrun mozilla.sh %s; test=InXTerm



On Fri, Nov 04, 2005 at 12:10:46PM -0500, Derek Martin wrote:
>   $ env |grep -i ssh |cut -d'=' -f 1
>   SSH_CLIENT
>   SSH_TTY
>   SSH_ASKPASS
>   SSH_CONNECTION
> 
> You could test for these...  But the method I suggested first might be
> preferable, because you may want to set the variable if you've logged
> into the local host via ssh

Er, in which case you could just parse the VALUE of those variables,
rather than just testing for them being set...  which is probably
easier than going through the hoops I suggested at first.  The only
advantage of the other method is your environment can be changed, so
the variables are theoretically less reliable.  In practice though, it
should be fine.

-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail.  Sorry for the inconvenience.  Thank the spammers.

Attachment: pgpGjkigby5NE.pgp
Description: PGP signature