Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 3
    This is most reliable way to control tunnel life time if you'd asked me. Thanks indeed Commented Sep 12, 2019 at 14:14
  • This is a far better solution than grepping and parsing ps output. Commented Sep 17, 2019 at 22:22
  • 3
    +1, much more reliable than the ps-based solution. the "exit" command removes the need for a PID to kill the process, but I took the liberty of editing in a mention of the "check" command, which also answers the question of "how do I get the PID?" as it was initially asked. Commented Oct 3, 2019 at 9:32
  • This is fantastic. Saved me from writing PID management in bash Commented Feb 20, 2020 at 19:14
  • 1
    Okay… different from what I asked but more useable really. I like it. Commented Feb 11, 2021 at 2:33