Advertisement
Barteks2x

Untitled

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