Why?
Because this is what wget
command is doing and because your cron job call wget
at every minute. From man wget
:
GNU Wget is a free utility for non-interactive download of files from the Web.
It creates files with 0 bytes because probably script.php
does not return nothing in non-interactive mode.
How to stop creating these files?
Run in terminal next command to open the crontab file:
crontab -e
and delete or comment the line:
* * * * * /usr/bin/wget -q https://domain/script.php
Save the crontab file and close it.
Or just simple use:
crontab -r
to remove your crontab file.
If you want to make the cron job only to access https://domain/script.php
every minute, then use curl
, ping
or maybe lynx
. For example:
* * * * * curl https://domain/script.php
More about: http://v1.corenominal.org/howto-setup-a-crontab-file/
wget -q https://domain/script.php
in terminal? Do you get non 0 bytes file in this case?