Last active
April 10, 2023 13:20
-
-
Save armando-couto/1b6a2e60aae2943a67c140d47378ec7b to your computer and use it in GitHub Desktop.
$ checkRunningProcess.sh proxy.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ps_out=`ps -ef | grep $1 | grep -v 'grep' | grep -v $0` | |
result=$(echo $ps_out | grep "$1") | |
if [[ "$result" != "" ]];then | |
echo "Running" | |
else | |
echo "Not Running" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment