Link to home
Start Free TrialLog 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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial