siva sankar wrote:
> hi all.
>  
>  I want to delete one folder after every 7days.
>  Is there any way to delete some files every wee?
>  If yes, plz help me.
>  

Write a shell script to delete the files you want deleted.

Then, write a line in your cron table, to run the script when you want 
it to run, automatically.

Read man cron and man crontab.

You can even have a line in the script that sends you an email, each 
time the script is run, and more lines in the script, creating a nicely 
formatted report, which files were deleted, etc., to include in the email.


My servers email me web server logs, email logs, general system 
information and insecurity reports every morning, so they arrive on my 
Desktop machine every morning, about the same time I have had enough 
coffee, so I am awake enough to understand what I am reading.

Very handy.


-- 
-wittig http://www.robertwittig.com/
.       http://robertwittig.net/



To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to