On Fri, May 13, 2011 at 7:15 AM, Sam Steingold <s...@gnu.org> wrote:

> >
> > 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 have following alias defined in my bashrc:

alias Q='[[ $WINDOW ]] && screen -X at '\''#'\'' stuff $'\''\04'\''; exit'


> 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.
>
>
> _______________________________________________
> screen-users mailing list
> screen-users@gnu.org
> https://lists.gnu.org/mailman/listinfo/screen-users
>
_______________________________________________
screen-users mailing list
screen-users@gnu.org
https://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to