Of crontabs
After some words on the syntax of cron jobs, one might look further into the matter here.
When running a PHP script through a cron job, does it have to be executed as a CGI script? It can help. Just make #! /usr/bin/php
as the first line of your PHP script and tack a .cgi
extension on the end of the file name.
Don’t like the email your cron is sending you after every execution? Don’t worry, that’s just the standard output (directed to your account email address specified in the .profile
file). You can get rid of the output emails by redirecting it into the black holes of the Unixverse, /dev/null
. To do this, append your crontab file with the incantation > /dev/null 2>&1
.
How about a nice trip around Google to finish this lesson off?
---
There is 1 other entry posted on this day.