Cronjob dossent work in cpanel
I have Cpanel on my linode server and trying to run a cronjob to start a import
my site i a wordpress and i use wp all import to get the stuff inported..
but i can't get the cron job to work. here is what i have setup !
Current Cron Jobs
Minute Hour Day Month Weekday Command Actions
0 * * * * /usr/local/bin/ea-php70 /home/max/publichtml/wp-cron.php?importkey=d.JLSTo&import_id=3&action=trigger Edit Delete
*/2 * * * * /usr/local/bin/ea-php70 /home/max/publichtml/wp-cron.php?importkey=d.JLSTo&import_id=3&action=processing Edit Delete
but i can't see it running anywhere. can anyone help
5 Replies
wget -q -O /dev/null "
but that dossent work etiher
what to do ?
1) use explicit paths to binaries everywhere (e.g. /usr/bin/wget instead of wget)
2) don't assume that you're executing in a certain directory, specifically cd to it if your cron script needs that
3) make sure the last line of the cron ends with a new line, some cron implementations will ignore it if it doesn't