What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Collection of scripts for stock firmware

Just checking that your script handles this: there are two pids with that configuration running on my router. I'm not needing this, but I'd thought I'd let you know.
That's interesting, why would there be two instances running off /etc/stubby/stubby-0.yml config file?
I've updated the script to use a loop, just like in my custom-configs script.
 
My apologies, you were right all along. There is only one stubby process. This updated command now just shows on pid after all:

Bash:
/bin/ps w | grep -v
 "grep" | grep -F "stubby" | grep -F "/etc/stubby/
stubby-0.yml" | awk '{print $1}'
 
My apologies, you were right all along. There is only one stubby process. This updated command now just shows on pid after all:

Bash:
/bin/ps w | grep -v "grep" | grep -F "stubby" | grep -F "/etc/stubby/stubby-0.yml" | awk '{print $1}'
Code:
grep -v "grep" | grep -F "stubby"
usually can be replaced with a trick like this
Code:
grep "[s]tubby"
no real speed benefits since we are replacing two calls with one regex call but we shorten the code little for easier read
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top