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

Thomas Güttler guettliml at thomas-guettler.de
Wed Jan 24 19:45:32 AEDT 2018



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:
It does not wait until the remote command has terminated.

But this is off-topic here. If you curious, I asked this question here:

   https://unix.stackexchange.com/questions/419284/pkill-which-waits

Regards,
   Thomas Güttler

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



More information about the openssh-unix-dev mailing list