• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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