Removes files from the BNU spool directory.
The uuclean command checks the Basic Networking Utilities (BNU) spool directory (/var/spool/uucp) for files with the specified prefixes and deletes those that are older than the given number of hours. If the -nHours flag is not included, the uuclean command deletes files that are older than 72 hours.
If the -p flag is not included, the uuclean command deletes all files in the specified subdirectories of the spool directory that meet the age requirement. If the -d flag is not included, the command deletes all the files (that meet the age and prefix requirements) in all the subdirectories of the spool directory. Thus if neither the -d or the -p flag is included, the uuclean command deletes all files in all subdirectories of the /var/spool/uucp directory that meet the age requirement.
If the -m flag is not specified, the uuclean command sends mail to owners of all command (C.*) files that it deletes. If the -m flag is specified, the command sends mail to the owner of each file it deletes, including data (D.*) and execute (X.*) files. The mail message includes the name of the deleted file.
The uuclean command is usually run by the cron daemon.
Note: Only someone with root user authority or who is logged in as uucp can issue the uuclean command.
| Item | Description | 
|---|---|
| -dSubdirectory | Deletes files from the specified subdirectory of the /var/spool/uucp directory if they match specifications given with the -n and -p flags. If the -d flag is not specified, the uuclean command checks all subdirectories of the /var/spool/uucp directory. Up to 10 subdirectories can be specified with the -d flag. | 
| -m | Instructs the uuclean command to send mail to the owner of each file when it is deleted. | 
| -nHours | Deletes files whose ages are more than the number of hours specified by the Hours variable, if they match specifications given with the -d and -p flags. The default is 72 hours. | 
| -pPrefix | Deletes files with the prefix given by the Prefix variable, if they match specifications given with the -n and -d flags. Up to 10 prefixes can be specified with the -p flag. | 
/usr/sbin/uucp/uuclean -pC/usr/sbin/uucp/uuclean -n84 -dvenus -dnostromo/usr/sbin/uucp/uuclean -m15 22 * * * /usr/sbin/uucp/uuclean -n96 -pC -pD -pX| Item | Description | 
|---|---|
| /usr/sbin/uucp/uuclean | Contains the uuclean command. | 
| /var/spool/uucp /* | Contains spooling files removed by the uuclean command. | 
| /var/spool/cron/crontabs/uucp | Schedules uucp jobs for the cron daemon. |