linux _壓縮日誌

wangzhensheng發表於2008-05-12

#!/bin/sh
logs="/app/sms/logs"
cd ${logs}/

find ./sms/*.log -mtime +1 -exec gzip {} ;
find ./umsserver/*.log -mtime +1 -exec gzip {} ;

[@more@]

#!/bin/sh
logs="/app/sms/logs"
cd ${logs}/

find ./sms/*.log -mtime +1 -exec gzip {} ;
find ./umsserver/*.log -mtime +1 -exec gzip {} ;

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8806316/viewspace-1003950/,如需轉載,請註明出處,否則將追究法律責任。

相關文章