On Fri, Jun 12, 2015 at 05:53:52PM -0400, Bob Bernstein wrote: > I need to steel myself to using systemd commands. What would be the > "systemd-correct" form of this: > > $ ps ax | grep ssh > > I use that to check for the existence (or, as the case may be) demise) of > an ssh tunnel I use for VNC. What should I use?
Not directly answering your question here, but some alternative ways to ask your system the question "Is there an 'ssh' process running?": $ ps ax | grep [s]sh # Avoids the grep process showing up $ pgrep ssh # Returns the PID of any 'ssh' processes > > > Thanks all, > -- For more information, please reread.
signature.asc
Description: Digital signature