Removes files from the BNU spool directory.
/usr/sbin/uucp/uuclean [ -m ] [ -nHours ] [ -pPrefix ] [ -dSubdirectory ]
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.
/usr/sbin/uucp/uuclean -pC
This command deletes all files in all subdirectories of the /var/spool/uucp directory whose names begin with C and that are older than 72 hours (the default). The system sends mail to the original owner of each file, stating that the file has been deleted.
/usr/sbin/uucp/uuclean -n84 -dvenus -dnostromo
This command deletes all files in the /var/spool/uucp/venus and /var/spool/uucp/nostromo directories that are older than 84 hours. By default, the system notifies owners of C.* files that the files have been deleted; however, it does not notify owners of other files it deletes.
/usr/sbin/uucp/uuclean -m
This command deletes all files in all subdirectories of the spool directory, if the files are older than 72 hours (the default). It sends mail to the owner of each file it deletes.
15 22 * * * /usr/sbin/uucp/uuclean -n96 -pC -pD -pX
This entry will cause the cron daemon to start the uuclean command at 22:15 (10:15 p.m.) daily. The uuclean command will delete all command (C.*), data (D.*), and execute (X.*) files that are older than 96 hours from all subdirectories of the spool directory.
/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. |
The uucp command, uux command, uucleanup command, uudemon.cleanu command.
The uucico daemon, cron daemon.
Understanding the BNU File and Directory Structure, Using BNU Maintenance Commands in AIX 5L Version 5.2 System Management Guide: Communications and Networks.