Skip to content

Instantly share code, notes, and snippets.

@christian-fei
Last active August 29, 2015 14:04
Show Gist options
  • Save christian-fei/c04c25a303a0e98336a4 to your computer and use it in GitHub Desktop.
Save christian-fei/c04c25a303a0e98336a4 to your computer and use it in GitHub Desktop.
#!/bin/bash
while true
do
clear
echo "====================================================="
ps ax | grep $1 | grep -v grep | grep -v "mp "
echo "="
ps ax | grep $1 | grep -v grep | grep -cv "mp "
echo "=====================================================";
echo "Press ctrl+c to stop"
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment