Bug 1594 - please add an option to print the pid of -f backgrounded process
Summary: please add an option to print the pid of -f backgrounded process
Status: CLOSED DUPLICATE of bug 1473
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 5.2p1
Hardware: Other Linux
: P2 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-03 18:27 AEST by Marc 'Zugschlus' Haber
Modified: 2011-09-06 15:32 AEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc 'Zugschlus' Haber 2009-05-03 18:27:37 AEST
Hi,

when one sends an ssh -MNf process to the background, it would be good to be able to kill it later without having to search for it in the process list. An option having it print its pid just before it backgrounds itself would be a great help.

Greetings
Marc
Comment 1 Darren Tucker 2009-05-03 19:37:58 AEST
There's another option: you can use ControlMaster plus "-O exit" for that.  ie.

ssh -MNf -o controlpath=~/ssh/somehost -o controlmaster=yes somehost sleep 10000

then
ssh -o controlpath=~/ssh/somehost -O exit somehost
Comment 2 Josh Triplett 2011-03-03 06:46:50 AEDT

*** This bug has been marked as a duplicate of bug 1473 ***
Comment 3 Damien Miller 2011-09-06 15:32:55 AEST
close resolved bugs now that openssh-5.9 has been released