Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ps -aux | awk '{print substr($0, index($0,$11))}' | grep "^java.*TekkitLegends.jar*$" > /dev/null; then
- echo yes; # here do whatever you want to do if it's running
- else
- echo nope; # here what you want to do if it's not running
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement