How can i check the specific cron job is running? I'm planning to create a script which is do the checking if my cron job is running then if not, the script would execute the cron job again..
Thanks in advance!
God bless you all!
if [ -n "$(lsof|grep -i $SCRIPT)" ]; then
echo "$SCRIPT is running"
echo "$SCRIPT is not running"