I have a script that runs by using
bash -c and I want to know how many process are running with that script.
$ ps ax | grep my_script_run | grep -v grep | grep -v "bash -c" 11121 ? S 0:00 bash -c export PATH="/opt/rbenv/bin:$PATH"; ruby my_script_run.rb 11173 ? Rl 19:38 ruby my_script_run.rb
Somehow with the command above doesn't exclude
bash -c string.
$ ps ax | grep my_script_run | grep -v grep | grep -v bash 11173 ? Rl 19:42 ruby my_script_run.rb
This command works fine, but I want to exclude
bash -c, not
Why the first command doesn't exclude
And how can I exclude it properly?
I forgot to write I'm using
wc -l after the