Re: Sending Signal to remote process

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

 



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


Unfortunately only the ssh process itself gets the signal, not the remote
command (print-signal.py). The remote command does not terminate :-(

Depending on your exact use case, this might help: Have an option to ssh that causes it to print the PID of the user process on the remote computer.

Dale

_______________________________________________
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