On Sat, 5 Apr 2003 [EMAIL PROTECTED] wrote:

> check if you are in text console or graphical console;
> if in text console call mc as mc -d
> 
> how would I do the first check with bash ?

Two ways that occur to me:

1) Test on the current value of $TERM.
2) Test whether or not $DISPLAY is set.

HTH!

-- 
Bill Mullen   [EMAIL PROTECTED]   MA, USA   RLU #270075   MDK 8.1 & 9.0
"There are two kinds of people in the world, those who believe there are
two kinds of people in the world and those who don't." - Robert Benchley

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to