home *** CD-ROM | disk | FTP | other *** search
- .key site/A,MAILTO/K
- .def MAILTO "pathsurvey@decwrl.dec.com"
- .bra [
- .ket ]
-
- ;# AUTOINPATHS -- create inpaths' statistik and send it away
- ;# Cyvaned Systems 1991/1992
- ;# creator Thomas Lotterer (joedust@cyvaned.muc.sub.org) 911228
- ;# changed Ralf S. Engelschall (rse@angle.muc.sub.org) 920204
-
- uulog "AUTOINPATHS: inpaths (PID:[$$]) startup"
- if exists T:autoinpaths.LOCK
- uulog "AUTOINPATHS: inpaths already running - exit"
- quit
- endif
- echo >T:autoinpaths.LOCK "autoinpaths (PID:[$$])"
-
- echo >T:autoinpaths.out "To: [MAILTO]"
- echo >>T:autoinpaths.out "Cc: postmaster"
- echo >>T:autoinpaths.out "Subject: inpaths statistic (autocreated)"
- echo >>T:autoinpaths.out
-
- uulog "AUTOINPATHS: collecting files"
- find NEWSARTS: -type f -print | sed >T:autoinpaths.files +
- -e "s/NEWSARTS://" +
- -e "s/in.coming/d" +
- -e "s/out.going/d" +
- -e "s/local.archived/d"
-
- uulog "AUTOINPATHS: building inpaths"
- assign AUTOINPATH[$$]: ""
- cd NEWSARTS:
- inpaths <T:autoinpaths.files >>T:autoinpaths.out -l [site]
- cd AUTOINPATH[$$]:
- assign AUTOINPATH[$$]:
-
- uulog "AUTOINPATHS: sending result to '[MAILTO]'"
- sendmail <T:autoinpaths.out -f inpaths -R "INPATHS-DAEMON"
-
- uulog "AUTOINPATHS: cleanup"
- delete T:autoinpaths.files T:autoinpaths.out T:autoinpaths.LOCK
- uulog "AUTOINPATHS: exit"
-