むつの日記

e7cf9ca4 :むつ 2006-01-16 12:58
#!/bin/sh
SAKUDIR=/home/hoge/saku
cd $SAKUDIR/cache/thread_E38280E381A4E381AEE697A5E8A898/record
grep -l "casino" * > ../spam_check
cd ..
for i in `cat spam_check`
do
mv record/$i remove/$i
done
mv spam_check spam_check.`date --utc +%s`
cd $SAKUDIR/shingetsu
./buildbodycache.py E38280E381A4E381AEE697A5E8A898

--
buildbodycache.py
#!/usr/bin/python

import sys, cache
cache = cache.Cache("thread_%s" % sys.argv[1])
cache.sync_body()

--
とかどうだろう? cron で数時間に一度くらい実行する心持で。
Powered by shinGETsu.