KDE's kdm starting filePro
Fairlight
fairlite at fairlite.com
Fri May 13 07:26:23 PDT 2005
Is it just me, or did Jay Ashworth say:
> Almost.
>
> If you SSH in from an X session on another machine, and X forwarding is
> enabled, the resulting shell session *will* have a DISPLAY variable:
> that of the tunnel to the machine you came from.
Even worse--the appearance of DISPLAY in the environment is arbitrary. I
hardwire mine on some systems to point to a specific location, whether I'm
planning on using it or not. It could be set and entirely unusable.
> SSH itself, though, sets a variable in the environment that you could
> check for, as long as "is an ssh session" is a good enough indicator.
>
> Look for $SSH_CLIENT.
Or $SSH_TTY.
I'd trust checking for ssh variables far more than I'd trust looking for
DISPLAY, simply because people might set DISPLAY from a telnet or ssh
session, but you wouldn't set ssh variables from X.
mark->
--
***** Fairlight Consulting's Software Solutions *****
OneGate Universal CGI Gateway: http://onegate.fairlite.com/
FairPay PayPal Integration Kit: http://fairpay.fairlite.com/
RawQuery B2B HTTP[S] Client & CGI Debugger: http://rawquery.fairlite.com/
Lightmail Mail Sending Agent: http://lightmail.fairlite.com/
FairView Image Viewer for Integration: http://fairview.fairlite.com/
More information about the Filepro-list
mailing list