Deletes selected files from the Basic Networking Utilities (BNU) spooling directory.
uucleanup [ -CDays ] [ -WDays ] [ -mString ] [ -DDays ] [ -TDays ] [ -XDays ] [ -o Days] [ -sSystemName ]
The Basic Networking Utilities (BNU) uucleanup command scans the spooling directory (/var/spool/uucp) for files that are older than a specified number of days and removes them. The uucleanup command performs the following tasks:
- The uucleanup command is not usually entered on the command line but is executed by the uudemon.cleanu command, a shell procedure. Only someone with root user privileges can issue the uucleanup command from the command line.
- When BNU is installed, automatic cleanup is not enabled. Edit the /var/spool/cron/crontabs/uucp file and remove the comment character (#) from the beginning of the uudemon.cleanu line to instruct the cron daemon to start the uudemon.cleanu command.
|-CDays||Removes C.* (command) files as old as, or older than, the number of days specified by the Days variable, and notifies the requester that the files have been deleted. The default time is 7 days.|
|-DDays||Removes D.* (data) files as old as, or older than, the number of days specified by the Days variable. Also attempts to deliver any remaining mail messages. The default time is 7 days.|
|-mString||Includes a specified line of text in the warning message generated by the -WDays option. The default line is See your local administrator to locate the problem.|
|-oDays||Removes other files as old as, or older than, the number of days specified by the Days variable. The default time is 2 days.|
|-sSystemName||Executes the uucleanup command only on the spooling directory
specified by the System variable. The default is to clean up
all BNU spooling directories.
Note: System names can contain only ASCII characters.
|-TDays||Removes TM.* (temporary) files as old as, or older than, the number of days specified by the Days variable. Also attempts to deliver any remaining mail messages. The default time is 7 days.|
|-WDays||Sends an electronic mail message to the requester warning that C.* (command) files as old as, or older than, the number of days specified by the Days variable are still in the spooling directory. The message includes the job ID and, if the request included mail, the mail message. The administrator can use the -m option to include a message line telling whom to call to check the problem. The default time is 1 day.|
|-XDays||Removes any X.* (execute) files as old as, or older than, the number of days specified by the Days variable. The default time is 2 days.|
This removes all C.*, D.*, T.*, and X.* files, and all other files older than the default times.
Note: Whenever the -C and -W flags are used together, make sure the value specified for the -W flag is less than that for the -C flag. Otherwise, the -C flag will delete all the C.* (command) files before any warnings can be printed.
To delete files for one system,
This removes all files using defaults for system hera, but does not remove any files for any other systems.
|/usr/sbin/uucp/*||Contains the uudemon.cleanu shell procedure and all the configuration files for BNU.|
|/var/spool/cron/crontabs/uucp||Schedules BNU jobs for the cron daemon, including the uudemon.cleanu shell procedure.|
|/var/spool/uucp/*||Contain files removed by the uucleanup command.|
The cron daemon.
The uucp command, uudemon.cleanu command, uustat command, uux command, uuclean command.
Maintaining BNU in AIX 5L Version 5.1 System Management Guide: Communications and Networks.