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
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
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
>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
>