Check if Conky is running


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #!/bin/bash
  2.  
  3. CONKY="conky"
  4. APPCHK=$(ps aux | grep conky | grep -v "grep conky" | wc -l)
  5.  
  6. if [ "$APPCHK" = '1' ];
  7. then
  8. echo "Conky isn't running!" > ~/conkyChk.log
  9. else
  10. echo "Conky is running fine :)" > ~/conkyChk.log
  11. fi
  12. $CONKY
  13.  
  14. exit

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.