Re: Sending Signal to remote process

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

 





Am 23.01.2018 um 18:24 schrieb Cristian Ionescu-Idbohrn:
On Tue, 23 Jan 2018, Thomas Güttler wrote:

I want ssh to forward the SIGTERM signal to the remote command.

Example:
    ssh root@localhost /root/print-signal.py

Get PID of ssh:
     ps aux| grep print-signal

Kill the matching ssh process:
     kill pid-of-ssh

You might be able to get around it by running:

$ ssh root@localhost '/root/print-signal.py </dev/null >/dev/null 2>/dev/null'

I recall I used that in another context.  I also recall the `ssh'
command not returning the prompt.  Does that allso happen to you?

I tried this, and it did not help. I ask myself how this could help,
since the ssh does not forward the signal. Do you think closing
the streams make a difference?

Regards,
  Thomas

--
Thomas Guettler http://www.thomas-guettler.de/
I am looking for feedback: https://github.com/guettli/programming-guidelines

_______________________________________________
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