On Sat, 2003-10-11 at 17:55, Callum Lerwick wrote:
> On Sat, 2003-10-11 at 17:25, Dan Drake wrote:
> > Did you try "screen --help"? Looks like -R is precisely what you want:
> 
> IIRC, the problem with this is -R refuses to reattach if something's
> already attached. It refuses to do 'multidisplay'. I always leave my
> desktop machine attached, so there's always at least one machine
> attached at all times. I want to be able to get in remotely, so this
> makes -R rather useless to me. ;P

This is what `screen -x' is for:

   -x   Attach to a not detached screen session. (Multi display mode).

However, there doesn't appear to be an option to do

  reattach if available, and do multi-display
  if no screen is available, create a new one.

But, this can be worked around with some shell trickery:

  screen -x || screen

If 'screen -x' fails, screen will start a new session.

-- 
 _  _  _  _ _  ___    _ _  _  ___ _ _  __   Can atheists get insurance
/ \/ \(_)| ' // ._\  / - \(_)/ ./| ' /(__   for acts of God?
\_||_/|_||_|_\\___/  \_-_/|_|\__\|_|_\ __)  
[ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088 at tc.umn.edu ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20031014/8b27fd6b/attachment.pgp