3 ms·
According to the manpage, `screen -DR` will detach the remote screen if it exists and reattach your session. No need to use shell conditionals or ||.
by gcr 14y ago
According to the manpage, `screen -DR` will detach the remote screen if it exists and reattach your session. No need to use shell conditionals or ||.
- beagle3 14y agoAh, but I don't want it detached! I often do pair programming or pair sysadminning through screen. Is there an equivalent that works with screen sharing ? ( -x )
- ryan-c 14y agoI have my .profile set up to auto-attach to a default screen session, which works with -x. http://blog.ryanc.org/?p=5 http://blog.ryanc.org/?p=5