Skip to content

Instantly share code, notes, and snippets.

@wudaown
Created June 23, 2012 14:53
Show Gist options
  • Save wudaown/2978558 to your computer and use it in GitHub Desktop.
Save wudaown/2978558 to your computer and use it in GitHub Desktop.
check amule state
#!/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