# get the pids of all processes matching a string (ruby, in this case) # it also skips the pid of the current grep process ps aux | grep ruby | grep -v grep | awk '{ print $2 }' }'
# get the pids of all processes matching a string (ruby, in this case) # it also skips the pid of the current grep process ps aux | grep ruby | grep -v grep | awk '{ print $2 }' }'