home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 4.0 PR1
/
NeXT_NEXTSTEP_4.0_PR1_(beta).rar
/
Openstep4-Pr1User.iso
/
private
/
adm
/
weekly
< prev
Wrap
Text File
|
1992-01-11
|
507b
|
30 lines
#
# /usr/adm/weekly
#
# This /bin/sh script is run once a week by cron. Put any housekeeping
# commands in here, like pruning of log files
#
# Trim the /usr/adm logfiles
cd /usr/adm
for i in hourly.log daily.log weekly.log monthly.log lpd-errs aculog
do
if [ -r $i ]
then
cp -p $i $i.old
/usr/ucb/tail -200 $i.old > $i
fi
done
# Trim the /usr/spool/uucp logfiles
cd /usr/spool/uucp
for i in LOGFILE SYSLOG ERRLOG
do
if [ -r $i ]
then
cp -p $i $i.old
/usr/ucb/tail -200 $i.old > $i
fi
done