I\'m writing a script (show_volume.sh) which may be called several times in short intervals. I need a way to determine whether there is more than just one running instance o
Try to exclude grep as well, as your grep itself also contains show_volume.sh, an example
show_volume.sh
ps -a | grep show_volume.sh | grep -v grep | wc -l