[Alpine-info] the right way to send the quit signal
mattack at apple.com
Mon Jan 4 12:01:03 PST 2010
On Tue, 29 Dec 2009, mattack at apple.com wrote:
> I suggest you use the 'screen' program in this case. This situation is the
> perfect use case for the program. I don't remember the option offhand, but
> there is an option to detach an existing screen session and reattach it 'here',
> where you are running it.
I realize the originator didn't end up using screen (and said why), but
just for completeness, I have this little shell script I wrote long
ago. I have no idea if it's even needed anymore..
if screen -ls|grep Detached > /dev/null; then
screen -R -d
which I call 'doscreen'. The help for -R says
-R Reattach if possible, otherwise start a new session.
So maybe that check isn't even necessary... but again, I don't actually
use screen too much anymore (though once in a while I run into a situation
where I wish I had started something in screen).
More information about the Alpine-info