Crontab generates many empty files

Written by

in

Our crontab syntax already includes an option which prevents files form being generated each time the crontab runs.

However, some hosting providers may require an different crontab command.

If your default crontab command looks something like:

wget -q "https://demo.phpmelody.com/cron.php?cron-key=68afdf2c980faf60924dc188b9ab583a"

You will have to use the -O option as illustrated below:

wget -O /dev/null "https://demo.phpmelody.com/cron.php?cron-key=68afdf2c980faf60924dc188b9ab583a"

Comments

8 responses to “Crontab generates many empty files”

Leave a Reply