Posted By

Affix on 12/18/10


Tagged

conky


Versions (?)

Check if Conky is running


 / Published in: Bash
 

  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  

You need to login to post a comment.