Iam facing some issue with shell script which is processed through crontab. I Get email with these errors:
checkprocess.sh: line 2:
: command not found
checkproces: line 4: syntax error near unexpected token `in
'
checkproces: line 4: `case $PROCESS_COUNT in
Here is the Shell Script Code:
#!/bin/sh
PROCESS_COUNT=$(ps -fu root | grep serv45svp | grep -v grep | wc -l)
case $PROCESS_COUNT in
0) /root/pro3/serv45svp &
;;
1) #OK, Program Running once
;;
*) #OK, program Running multiple time
;;
esac