10-13-2009, 09:08 PM
Hi Guys,
How can I create a cronjob set to run at oh, let's say about 3:00am every day to clean out the downloads and logs folder. Is this possible? I am not a linux guru so a little help would be great.
I know the command to remove all files from a specific folder:
rm -r *.*
So would the command look something like:
cd /home/path/to/logs/ && rm -r *.*
Just want to make sure I am doing this right. Also is it advised? I run fairly popular servers and those folders fill up quick.
How can I create a cronjob set to run at oh, let's say about 3:00am every day to clean out the downloads and logs folder. Is this possible? I am not a linux guru so a little help would be great.
I know the command to remove all files from a specific folder:
rm -r *.*
So would the command look something like:
cd /home/path/to/logs/ && rm -r *.*
Just want to make sure I am doing this right. Also is it advised? I run fairly popular servers and those folders fill up quick.