CHECK='ps aux | grep start.jar | grep -v grep | wc -l'
if [ $CHECK = 0 ]
/usr/local/jre-1.7.0/bin/java - jar start.jar &
Could anybody advise whats up with this code im trying to put this in as a cron job to check that solr search engine is running every 10secs and if its not start it. The script is giving me a error when i execute it.