Control Web Panel

WebPanel => CentOS-WebPanel GUI => Topic started by: rhunyady on June 26, 2017, 04:13:13 PM

Title: not really a problem, bust seeking help with creating a cron to clean up folders
Post by: rhunyady on June 26, 2017, 04:13:13 PM
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!
Title: Re: not really a problem, bust seeking help with creating a cron to clean up folders
Post by: Administrator on June 27, 2017, 11:24:20 PM
maybe like this?
Code: [Select]
rm -f index.html.* tasks_key\=runaccesskey.*
Title: Re: not really a problem, bust seeking help with creating a cron to clean up folders
Post by: rhunyady on October 23, 2017, 03:31:57 PM
I'll try that and see if it works :-)  now if i could get pureftp to update and work instead of having to downgrade :-)