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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
wget --spider