File: daily.reader

package info (click to toggle)
diablo 1.16.test2-1
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 1,504 kB
  • ctags: 1,603
  • sloc: ansic: 17,654; perl: 2,054; sh: 260; csh: 118; makefile: 73
file content (28 lines) | stat: -rwxr-xr-x 392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/csh -f
#
# daily.reader
#

cd ~

echo "`date` - $0 BEGIN"

# Remove cached articles over 3 days old
#

if ( -d ~/spool/cache/. ) then
    cd ~/spool/cache
    find . -type f -name "????????.????????" -mtime +3 -print | xargs rm
endif

# Remove overview information
#

cd ~
if ( -d ~/spool/group/. ) then
    cd ~/spool/group
    ~/dbin/dexpireover -NB
endif

echo "`date` - $0 END"