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 .

-- 
========================,,============================================
SUPPORT     ___________//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
TRANSIT    `-O----------O---'  University of Toronto
-- 
gentoo-user@gentoo.org mailing list

Reply via email to