Using wget for Cronjob without output

Short snippet to use for a cronjob to call a url if you don't want any output:

* * * * * /usr/bin/wget wget -qO /dev/null https://www.example.com/your-script-to-run

Or to only use HEAD:
* * * * * /usr/bin/wget wget --spider -qO /dev/null https://www.example.com/your-script-to-run

For further details see https://www.gnu.org/software/wget/manual/wget.html

Einordnung:

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.

More information about formatting options