-d -RR, but detached?
Phil!Gregory <[email protected]>
| Newsgroups | gmane.comp.gnu.screen |
|---|---|
| Message-ID | <[email protected]> |
Is there a combination of command line options that will create a detached
screen session only if it doesn't already exist? I can use 'screen -d -m
-S foo' to always create a detached session, and 'screen -d -RR -S foo' to
attach and create if necessary, but can they be combined?
My current best effort is two commands and some shell scripting:
screen -S foo -q -ls
if [ $? -eq 8 ]; then
screen -dm -S foo
fi
--
...computer contrarian of the first order... / http://aperiodic.net/phil/
PGP: 026A27F2 print: D200 5BDB FC4B B24A 9248 9F7A 4322 2D22 026A 27F2
--- --
Unibus timeout fatal trap program lost sorry
-- An error message printed by DEC's RSTS operating
system for the PDP-11
---- --- --
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/gnu-screen/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/