Link to home
Create AccountLog in
Avatar of fox_statton
fox_statton

asked on

Cron job leaving files behind

Hi all,
I have a cron job that runs a php script using wget (job.php)

However, everytime the cron runs it creates a version of the script and leaves it behind in the root, for example job.php.1, job.php.2 etc, over time this accumulates into hundreds of files.

Is there a way to stop this happening?
Avatar of Frank Contrepois
Frank Contrepois
Flag of United Kingdom of Great Britain and Northern Ireland image

use
wget --spider
ASKER CERTIFIED SOLUTION
Avatar of lost_and_unfound
lost_and_unfound

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account