Many getwork.php files

Does anyone know what would cause thousands of getwork.php files to be duplicated in the /var/www directory? Here’s an image:

They’re all empty, various dates spanning months since I first created the server. Are these lock files that aren’t able to be deleted due to permissions or something?

Thanks,
Shane

They aren’t lock files. Is that the server AMI?

If I had to guess, I may have screwed up the crontab entry that makes fake requests to getwork.php to allow the cron jobs to run without any agents present. If it is doing a wget it may be missing -O /dev/null. Check crontab-e and see what the cron job looks like.

Yes, I am using the server AMI - and yup, just checked the crontab for www-data user and the entry read:
/usr/bin/wget “http://127.0.0.1/work/getwork.php” > /dev/null 2>&1

I updated with the -O to read:
/usr/bin/wget -O /dev/null “http://127.0.0.1/work/getwork.php” 2>&1

I’ll delete those existing files and see if they come back.

BTW - good to know there’s a cron entry that allows the server to run appropriately without polling agents - great idea.