![]() |
![]() |
![]() |
![]() |
||
![]() |
||
![]() |
![]() |
![]() |
![]() |
||
|
|
||
![]() |
||
![]() |
![]() |
![]() |
![]() |
||
![]() |
||
This article is from the AmigaUUCP
FAQ, by Marc SCHAEFER,
Automatic polling. If you call a system on a regular basis and want to automate the process, you can run UUCico from DCron at specific times of the day.
First maintenance. Programs like UUCico, Getty, DCron itself, and sendmail generate log files which, if left alone, would eventually fill up your disk. Also, if you are receiving NEWS, you need to delete expired articles. Due to the volume of news, not deleting old articles can fill up your HD very quickly.
The TRIMFILES utility trims log files to a specified number of lines, default 100. I normally run TRIMFILES on the various log files once a day early in the morning. The S:CRONTAB entry I use is:
# trim log files at 3:01 A.M.
1 3 * * * uucp:c/trimfile tmp:dcron.log uu:spool/logfile getty:logfile
Note that the file paths will be somewhat different for your system.
Second, keeping your UUNEWS: directory reasonable. The TRIMNEWS utility will handle this. TRIMNEWS scans your UULIB:Newsgroups file for the list of newsgroups, then scans each news group deleting articles over N days old, where N is specified in the Newsgroups file. A sample NewsGroups file might be:
comp.sys.amiga 7
comp.sys.amiga.tech 7
comp.sys.amiga.programmer 7
comp.sys.amiga.announce 7
alt.sys.amiga.uucp 14
alt.sys.amiga.uucp.patches 30
Which essentially tells TRIMNEWS to delete all articles in comp.sys.amiga.* over 7 days old (7 days from reception), to delete all articles in alt.sys.amiga.uucp over 14 days old, and to delete all articles in alt.sys.amiga.uucp.patches over 30 days old.
I normally run TRIMNEWS in the morning too, my S:CRONTAB file has:
# run TRIMNEWS at 3:06 A.M.
6 3 * * * uucp:c/trimnews
DCRON is also useful to control the modem configuration. You can run the Getty utility from DCron to turn off the modem speaker while you are asleep. I use DCRON for other things as well, such as to automatically revise UUNET's amiga-uucp[-patchces] mailing list whenever I make a local change, and to backup my hard disk. I also use it to post this sheet once a month.
 
Continue to:
![]() |
|
|