Feature Request: PID writeout on background
chris
chris at cataclysmal.org
Wed Oct 28 14:47:11 AEDT 2020
On Wed, Oct 28, 2020 at 02:36:04PM +1100, Damien Miller wrote:
> On Tue, 27 Oct 2020, chris wrote:
>
> > Hi all.
> >
> > I have a simple feature request for the devs and maintainers; when
> > forking into the background using the -f optarg one would normally have
> > to consult the process table of whatever OS they're running to find the
> > process. Would you consider adding another optarg to write the PID out
> > to stdout or a pidfile? This would be rather helpful in several
> > usecases.
>
> You can retrieve this if you configure a control socket:
>
> $ ssh -S /tmp/sock -nNf host
> $ ssh -S /tmp/sock -O check host
> Master running (pid=3509649)
> $ ssh -S /tmp/sock -O exit host
> Exit request sent.
>
> -d
Well that's handy. Thanks for the heads-up!
-c
More information about the openssh-unix-dev
mailing list