not really a problem, bust seeking help with creating a cron to clean up folders

Started by rhunyady, June 26, 2017, 04:13:13 PM

Previous topic - Next topic

rhunyady

I'm not great with creating crons, in fact i'm quite the newbie at them!

Here's the issue:
One of my sites runs a cron which was set to every minute (i've changed that to twice an hour, for media encoding)
When the cron runs it creates 2 files each time in the /home/username/ directory

These files have names like this:
index.html.(number)
tasks_key=runaccesskey.(number)

Any suggestion on a cron task to delete every one of those files say twice a day to keep the directory clean??


Any help appreciated!
Regards!

Administrator


rhunyady

I'll try that and see if it works :-)  now if i could get pureftp to update and work instead of having to downgrade :-)