View Single Post
Old 08-11-2017, 04:48 PM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
try this

Quote:
*/5 * * * * (cd /usr/share/../../../; php ./file.php) > /dev/null 2>&1
This is a no email 5 min cron
sometimes you have to cd then use the cli
always end you cron with a new line

You need a MTA and Email server to send an email out.
see cd /var/logs

to troubleshoot cron

Code:
root~:$ cat /var/logs/syslog|less
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote