On Tuesday 01 August 2006 23:20, John J. Foster wrote:
> Good afternoon,
>
> 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?
>
> Thanks,
> festus

Hi,

One possible solution would be to check the value of $TERM variable... If it 
is 'xterm' then you're probably in the X terminal emulator.

BR,
dmitri
-- 
[email protected] mailing list

Reply via email to