On Thu, 28 Jul 2005 [EMAIL PROTECTED] wrote:
How can I tell if I'm running under X in a shell script? If I'm in X, I want to start screen: screen -m -c /my/config/file. If I'm not under X, I want to start without the -m. It's an odd google to find the answer to this question, so your wisdom is appreicated.
Check for the DISPLAY variable? -Dan
-judd maltin _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users
-- <Wrin> quick, somebody tell me the moon phase please? <Dan_Wood> Wrin: Plummeting. -Undernet #reboot, 9/11/01 (day of the WTC bombing) --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --------------------------- _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users