PMDF System Manager's Guide
PMDF-REF-6.0


Previous | Contents

26.2.5 Starting the message return cron job

The UUCP message return job should be scheduled by cron. To submit commands to the cron daemon, first become user pmdf:

# su pmdf
To edit the crontab entries, issue the command
$ crontab -e
and use the editor thus invoked to add an entry such as the following:
30 1 * * * /pmdf/bin/return_uucp </pmdf/log/return_uucp.log-`/pmdf/bin/unique_id` 2>&1 
The example entry shown above would be used to run the UUCP return job at 1:30 am and create the log file /pmdf/log/return_uucp.log-uniqueid, where uniqueid will be a unique string disambiguifying the file name, allowing for multiple versions of the file. The first value specifies the minutes after the hour, and the second value specifies the hour --- you may wish to specify other values according to the needs of your site. You should use the return_uucp shell script as shown above, which itself calls the program /pmdf/bin/return_uucp, rather than the UUCP cleanup command, since return_uucp will honor the notices channel keyword and understand the MIME format of the messages.


Previous | Next | Contents