[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exiting a list of screen sessions
From: |
Sam Steingold |
Subject: |
Re: Exiting a list of screen sessions |
Date: |
Thu, 12 May 2011 19:15:05 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> * Micah Cowan <zvpnu-4C9oUIHXRmIOQYmH/address@hidden> [2009-02-28 15:04:27
> -0800]:
> Marc Lanctot wrote:
>> Typically I run commands on servers and let them run for some time..
>> when I'm done I kill all the processes with one command.
>>
>> I would like to be able to kill all my screens in one command as well,
>> so I thought of parsing screen -r and sending a "kill command" to each
>> screen, but I can't find anything on how to do that in the man page.
>>
>> I tried
>>
>> screen -S id -X exit
>
> Try: screen -S id -X quit
yes, but will it send EOF to each bash window?
if it will not, I will lose my bash history!
I often type quite complex commands (micro-scripts, actually) at the
bash prompt, and recall them using C-r. I would like them to persist
for some time in the bash history files until they are eventually
forgotten due to dis-use. So, I love it that screen saves my bash
sessions from crashing when my connection fails, but I hate it that
screen does not tell the bash sessions in it to terminate when it is
exiting (e.g., when the host is rebooted).
In my ideal world the reboot script will send all screen sessions a
"finish" signal and screens will send EOF to each bash window they have.
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X
11.0.60900031
http://jihadwatch.org http://truepeace.org http://palestinefacts.org
http://www.memritv.org http://openvotingconsortium.org
Software is like sex: it's better when it's free.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Exiting a list of screen sessions,
Sam Steingold <=