[Top][All Lists]

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

Re: how to kill child process?

From: vapnik spaknik
Subject: Re: how to kill child process?
Date: Mon, 24 Aug 2020 11:07:38 +0000 (UTC)


>This does not answer your exact question, but such behavior can be
>acheived very automatically by putting something like the following into
>  ControlMaster auto
>  ControlPath ~/.ssh/socket/%C
>  ControlPersist 5
>This automatically creates master processes.  And the respective master
>processes automatically terminate after 5 seconds.  See 'man 5

Yes, I'm aware of this, but I don't want to have to depend on the config file.

>But even then: ssh seems to have a '-o <option>'.  From 'man 1 ssh':
>"This is useful for specifying options for which there is no separate
>command-line flag."  So you do not even have to put it into the config
>and can use it only on specific commands.
>Best wishes

OK thanks, I guess I could use '-o ControlPersist no' or run another ssh 
process with '-O exit' after running the rsync commands.
However, I'm still interested to know if there is a more general way of killing 
long-running child processes. Seems to me that this is quite a fundamentally 
important ability.  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]