Cleans up BNU spooling directories and log files.
uudemon.cleanu
The /usr/sbin/uucp/uudemon.cleanu command is a shell script that cleans up the Basic Networking Utilities (BNU) spooling directories and log files. The command deletes files in the spooling directories that are as old as, or older than, a specified number of days, and then removes empty spooling directories.
The uudemon.cleanu command also updates archived log files by removing log information more than three days old. The command removes log files for individual computers from the var/spool/uucp/.Log directory, merges them, and places them in the var/spool/uucp/.Old directory, which contains old log information.
After performing the cleanup operations, the uudemon.cleanu command mails the uucp login ID a summary of the status information gathered during the current day.
Instruct the cron daemon to run the uudemon.cleanu command daily, weekly, or at longer intervals, depending on the amount of transactions the uucico and uuxqt daemons perform on the local system.
To run the uudemon.cleanu procedure automatically, edit the /var/spool/cron/crontabs/uucp file and uncomment the uudemon.cleanu line. Change:
# 45 23 * * * /usr/bin/sh -c
"/usr/sbin/uucp/uudemon.cleanu > /dev/null"
to:
45 23 * * * /usr/bin/sh -c "/usr/sbin/uucp/uudemon.cleanu > /dev/null"
The 45 notation represents minutes, the 23 notation represents hours based on the 24-hour clock, and the three asterisks (* * *) are placeholders representing the day of the month, the month of the year, and the day of the week, respectively. This line therefore instructs the cron daemon to run the uudemon.cleanu shell procedure at 45 minutes after hour 2300-that is, at 11:45 p.m.
45 23 * * * ulimit 5000; /usr/bin/su uucp
-c "/usr/sbin/uucp/uudemon.cleanu > /dev/null"
Put
the text on one line when entering it in the root crontabs
file.Item | Description |
---|---|
/usr/sbin/uucp/uudemon.cleanu | Contains the uudemon.cleanu command. |
/var/spool/cron/crontabs/uucp | Schedules BNU jobs, including the uudemon.cleanu command, for the cron daemon. |
/var/spool/cron/crontabs/root | Schedules root user jobs for the cron daemon. |
/var/spool/uucp/.Log /* | Contains the BNU program log files. |