AW: kill (work-around) does not wait. Was: Sending Signal to remote process

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



> Von: openssh-unix-dev [mailto:openssh-unix-dev-
> 
> Am 24.01.2018 um 04:56 schrieb Carlos Morel Gómez La Roque:
> > Well, it would be nice to do
> >
> > ssh remote print-signal.py
> >
> > and then
> >
> > ssh remote pkill print-signal.py
> >
> 
> Yes, I could work around this by killing the remote command myself.
> 
> But "kill" or "pkill" have one big disadvantage in this case:
> ...

What about that (untested)?

* Start the remote process in a screen session with custom control key bindings?
* When termination is needed, send the "screen detach sequence" to remote
* You drop to shell outside screen, send signal via screen descriptor (no pkill hell) to inside process
* If process should not terminate by that signal (e.g. HUP to reload config), reattach to the screen again

Effect: killing works nice, for signal + resume, screen flickering would be seen.

LG R

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux