Return to Snippet

Revision: 37872
at December 18, 2010 22:11 by Affix


Initial Code
#!/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

Initial URL

                                

Initial Description

                                

Initial Title
Check if Conky is running

Initial Tags

                                

Initial Language
Bash