Re: Reattaching to a detached screen

2009-01-01 Thread Aaron Davies
On Fri, Jan 2, 2009 at 6:08 AM, Michael Grant wrote: > Here is what I use in my .bash_login: > > if screen -wipe 2>&1 | egrep -v "No Sockets found" >/dev/null; then > echo -n "Reattach to detached tree? (y/n) [space=y] " > read -n1 a; > if [[ ("$a" = "y") || ("$a" = "") ]]; then >exec scre

Re: Reattaching to a detached screen

2009-01-01 Thread Michael Grant
Here is what I use in my .bash_login: if screen -wipe 2>&1 | egrep -v "No Sockets found" >/dev/null; then echo -n "Reattach to detached tree? (y/n) [space=y] " read -n1 a; if [[ ("$a" = "y") || ("$a" = "") ]]; then exec screen -xRR fi echo "" else echo "type 'screen' to start scree

Re: Reattaching to a detached screen

2009-01-01 Thread Trent W. Buck
Andrew Schulman writes: >>autossh -M 0 -t RemotePC "screen -e^Yy -D -R -S `uname -n`2RemotePC-$NEXT" > >> What I would like to be able to do is to attach to this screen from a >> new shell in RemotePC, or a new screen launched from MyPC, such that >> the deattached screen now becomes attache

Re: Reattaching to a detached screen

2009-01-01 Thread Andrew Schulman
>autossh -M 0 -t RemotePC "screen -e^Yy -D -R -S `uname -n`2RemotePC-$NEXT" > What I would like to be able to do is to attach to this screen from a > new shell in RemotePC, or a new screen launched from MyPC, such that > the deattached screen now becomes attached AND the new shell or screen >