--- In [email protected], siva sankar <[EMAIL PROTECTED]> wrote:
>
> Hi..all
>  
>  i am using centos 4.4,
>  i want to delete one folder automatically after 1week.
>  is there any way to automatically remove certain folders in linux?
>  if so, plz help me.
>  waiting for ur response.
>  
>  thanking you
>  siva
>  
It depends on what you mean.  If you mean simply wiping a directory
every 7 days regardless of content, you can use either "cron" or "at"
commands plus the standard "rm" command.  All of these have entries in
the man pages.  Type "man <command>" where <command> is what you want
to learn about.

If, on the other hand you want to remove files from a particular
directory after they are a week old, use "cron" with the "find"
command and "rm".  Again, use your man pages.  Find has the capability
to locate files that have time/date attributes indicating age such as
time since the file was created or time since hte file was last modified.

Loyal



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