1 |
060801 John J. Foster wrote: |
2 |
> In a bash script, how can I test whether the script itself is being run |
3 |
> from a virtual terminal, or from an emulator like konsole within X? |
4 |
|
5 |
'echo $DISPLAY' returns ':0' from Konsole, |
6 |
but nothing from a raw terminal called up via Ctl-Alt-F2 . |
7 |
|
8 |
-- |
9 |
========================,,============================================ |
10 |
SUPPORT ___________//___, Philip Webb : purslow@××××××××××××××.ca |
11 |
ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies |
12 |
TRANSIT `-O----------O---' University of Toronto |
13 |
-- |
14 |
gentoo-user@g.o mailing list |