-
-
Save wudaown/2978558 to your computer and use it in GitHub Desktop.
check amule state
This file contains 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 | |
amuleexit=$(ps aux| grep amule | head -n1 | awk '{print $11}') | |
echo "$amuleexit" | |
if [ "$amuleexit" == "grep" ] | |
then | |
amule | |
else | |
echo "fine" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment