Re: deleting old ascii player files

From: Mark Garringer (zizazat@hotmail.com)
Date: 12/27/02


>what i do is i add another tagin the file outputing when
>the last time they were written to disk i every night
>at midnight check it with difftime ( i write the string
>to the file in the EXACT format difftime wants) and then
>if difftime tells me it is over a number i set in conf
>i delete the file.

What's wrong with:

FS="pfiles plralias plrobjs plrvars"
for d in $FS
  do
    find /home/user/circle/lib/$d -type f -mtime +60 -exec rm {} \;
  done

:)

--Ziz

_________________________________________________________________
The new MSN 8: smart spam protection and 3 months FREE*.
http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU=
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_smartspamprotection_3mf

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT