jokerfool Posted October 29, 2008 Share Posted October 29, 2008 I wanted to know if there was a cron job that would run every week to check to see if there was a certain file appearing in the main root of the folder, if so, delete the file. If not then what about creating a small script that basically says delete this file abc.* every week. Any help please? Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/130595-cron-job-delete-file-help-please/ Share on other sites More sharing options...
trq Posted October 29, 2008 Share Posted October 29, 2008 This would run at midnight every Sunday. * 0 * * 0 /bin/rm /path/to/file 2>&1 Quote Link to comment https://forums.phpfreaks.com/topic/130595-cron-job-delete-file-help-please/#findComment-677551 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.