/ Published in: Bash

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash CONKY="conky" APPCHK=$(ps aux | grep conky | grep -v "grep conky" | wc -l) if [ "$APPCHK" = '1' ]; then echo "Conky isn't running!" > ~/conkyChk.log else echo "Conky is running fine :)" > ~/conkyChk.log fi $CONKY exit
Comments
