Author Topic: not really a problem, bust seeking help with creating a cron to clean up folders  (Read 6647 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
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!

Offline
*
maybe like this?
Code: [Select]
rm -f index.html.* tasks_key\=runaccesskey.*
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

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