Henry Nelson
Tue, 19 Sep 2006 18:00:16 -0700
On Tue, Sep 19, 2006 at 06:44:26PM +0200, Peder Stray wrote: > Remember that screen adds $STY to your environment, so you can test for > it: > > if [ -z "$STY" ]; then > exec screen -dR > fi > > which would exec screen, attach to an already running or start a new > screen if you aren't already in one. No problem there...
Fantastic! I've been looking for such a test. You wouldn't by chance have a translation for that into "csh", would you? Also, with "csh", am I right to assume the test would go in ".login"? TIA > ... But for a host you ssh into, it would be ok. Almost always my case. -- henry nelson WWW_HOME=http://yuba(dot)ne(dot)jp/(tilde)home/ _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users