Should cron jobs be entered with or without the quotes - see below? Also, how can you test whether a cron job is working? Thanks. Example: “nice –adjustment=19 /usr/bin/php /$full-path-to-the-file/file_name.phpâ€
You don't need to have the quotes 30 * * * * nice –adjustment=19 /usr/bin/php /$full-path-to-the-file/file_name.php Just keeping this will do
To make sure a cronjob is really working, I usually redirect the ouput to a log file. For example: .../file_name.php >& cron.log or, depending on your shell: .../file_name.php > cron.log 2>&1 Cheers, Cryo.
Change the email address then put this code at the top of your php script and if you cron job fires the script, it will tell you via email. // The message $message = "Line 1\nLine 2\nLine 3"; // Send mail('someone@hotmail.com', 'The Subject', $message);