On Tue, Aug 01, 2006 at 03:43:12PM -0400, Philip Webb wrote: > 060801 John J. Foster wrote: > > In a bash script, how can I test whether the script itself is being run > > from a virtual terminal, or from an emulator like konsole within X? > > 'echo $DISPLAY' returns ':0' from Konsole, > but nothing from a raw terminal called up via Ctl-Alt-F2 . > Of the different methods suggested, I like this one best.
Thanks to all who replied, festus -- Ambition is a poor excuse for not having enough sense to be lazy.
pgpHGTOGOyUwr.pgp
Description: PGP signature

