Cron Job

J

JDwebsites

Guest
I am trying to run a cron job under root and I am getting this error message:
/bin/sh: line 1: service: command not found

The cron job is:
service --status-all | grep spamd

Can you not run service in a cron job?
 
I would try specifying the exact path to the service command
(/sbin/service --status-all | grep spamd)
 
Back
Top