So how i can make example on my server i have DOWNLOADS folder and i need make something like automatic delete all files in this folder every 12 hours ? thx
the question is to vague. you can do this a number of ways. you can make a php script that goes off every 12 hours and deletes those files, you can make a shell script that does the same. are these files been downloaded onto your tmp folder? if so then you can configure the server to empty the temp folder every 12 hours also.
in /etc/crontab add something like this line: 0 */12 * * * root /bin/rm -rf /path/of/DOWNLOADS/* Code (markup): Obviously change "/path/of/DOWNLOADS/*"
First thx to all for help! @fabriciogr In my DOWNLOADS folder is video which my users convert from youtube and now i need make something what will delete this video every 12 h @slacker8 So i need in Notead put 0 */12 * * * root /bin/rm -rf /path/of/DOWNLOADS/* and where upload this ? thx
You would need to place this in the crontab. Depending on your system, you would use something like this, from a shell command line: crontab -e Then, you would place that code in the bottom, hit ctrl x to save.