File: mvstats

package info (click to toggle)
xntp3 5.93-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 7,644 kB
  • ctags: 7,419
  • sloc: ansic: 59,474; perl: 3,633; sh: 2,623; awk: 417; makefile: 311; asm: 37
file content (23 lines) | stat: -rwxr-xr-x 536 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# mvstats,v 3.1 1993/07/06 01:10:24 jbj Exp
#
# mvstats is called by cron for keeping the log files together
# usually only used on reference hosts
#
# Files reside in /var/NTP
# Files older than 2 days will be compressed,
# Files older than 64 days will be removed.
#
# mvstats,v
# Revision 3.1  1993/07/06  01:10:24  jbj
# XNTP release 3.1
#
#
# Revision 1.1  1992/12/10  12:58:24  kardel
# Prerelease NTP V3 / DCF
#
#
cd /var/NTP
find . ! -name '*.Z' -mtime +2 -exec compress -f {} \;
find . -mtime +64 -exec rm -f {} \;