Necrotica wrote:
>
> I'm interested in learning a little about bash scripting. In particular, I'd
> like to learn how to tell if the user logging on is logging in under X or from
> a command prompt. Can anyone point me in the direction of where I can find this
> information? Thanks...
>
> -Chris
Just see if $DISPLAY is set. (Sorry: I only know csh; there it's
$?DISPLAY, but probably not the same for bash.)
--
"Brian, the man from babble-on" [EMAIL PROTECTED]
Brian T. Schellenberger http://www.babbleon.org
Support http://www.eff.org. Support decss defendents.
Support http://www.programming-freedom.org. Boycott amazon.com.