21 lines
5.2 KiB
Plaintext
21 lines
5.2 KiB
Plaintext
en·vÅos TRICKLE
|
||
2
|
||
|
||
4
|
||
|
||
1
|
||
|
||
TRICKLE
|
||
1
|
||
|
||
4
|
||
|
||
By: Nick Briggs (Briggs.pa@Xerox.com)
|
||
Uses: PROMPTREMINDERS
|
||
This document last edited on October 12, 1987
|
||
INTRODUCTION
|
||
Trickle provides a very simple cover for COPYFILES to do periodic (every 24 hours) updating of one directory from another, with processing of the log files generated by COPYFILES to mail a note to some designated person indicating what COPYFILES did.
|
||
USE
|
||
There is only one function of interest to the user:
|
||
(Trickle Source Destination RootLogfileName MailAddress ScheduleAnotherOne
|
||
DontReplaceOldVersions) [Function]
|
||
Source and Destination should be patterns acceptable to COPYFILES. RootLogfileName should be a host, directory, and partial file name to which Trickle will append the date in the form yymmdd, and the extension .CopyLog. On completion of the copy Trickle will mail a message to MailAddress if it is non-NIL. If ScheduleAnotherOne is T then another Trickle will be scheduled (randomly) between 1 am and 5:59 am of the next day, alternatively, if ScheduleAnotherOne is a time that would be acceptable to IDATE (Trickle will prepend the actual date, just give the time) then another Trickle will be scheduled at exactly that time. DontReplaceOldVersions signals that Trickle should not use the COPYFILES option REPLACE, use of which causes problems with NS file servers (at least in Koto).
|
||
Example
|
||
To update the directory {cf}<lispusers>koto>* from {eris}<lispusers>koto>* storing the log files starting with {core}eluk-870512.copylog, mailing notification to Briggs.pa, scheduling this to run every night, and using COPYFILES' REPLACE option one would execute:
|
||
(SETREMINDER NIL NIL
|
||
'(Trickle '{eris}<lispusers>koto>* '{cf}<lispusers>koto>*
|
||
"{core}eluk-" "Briggs.pa" T)
|
||
"12-May-87 03:00")
|
||
Two versions of the log file will be created; version 1 with the complete log output of COPYFILES, and version 2, with all the "skipped" files removed. It is this version that is mailed to the designated recipient.
|
||
The mail messages that are sent out indicate whether there were any files processed: the subject line will include the string "(Empty)" if no files were Trickled, and the string "(Error?)" if there were no files in the source directory (may not be an error, but may be worth investigating) |