Page 1 of 1

How to delete cronjob log after executed?

Posted: Mon Jun 21, 2021 8:15 pm
by JTorres
Hi.
I created a cronjobs to call a php file every 5 minutes like:

wget http://www.server.com/file.php

The site admin folder is full of log files with the name of the file and a number like "file.php.256"

Its possible to create a cronjobs to call a php file but that doesnt save this files?

Thanks !

Re: How to delete cronjob log after executed?

Posted: Mon Jun 21, 2021 8:26 pm
by JTorres
I solved chaning wget to curl