Write a script something like this, and call it "screen". Or call it "myscreen". Or whatever...
#!/bin/sh # if no DISPLAY variable, then we are not in X # DISPLAY might not be the best environment variable to test for but # it should work if [ -z "$DISPLAY" ]; then exec /usr/bin/screen blah else exec /usr/bin/screen blah2 fi [EMAIL PROTECTED] writes: > 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. > > -judd maltin > > > _______________________________________________ > screen-users mailing list > screen-users@gnu.org > http://lists.gnu.org/mailman/listinfo/screen-users _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users