Use the following procedures to clean out unnecessary files stored in the spooling directory.
Note: Some commands require root user or system group authority.
du -rs /var/spool
The du command summarizes disk usage. The -s flag instructs the du command to display only the total disk usage of the /var/spool directory and the files it contains. The -r flag tells the du command to display an error message if it cannot read a file or directory.
chmod go-rw /var/spool/lp0
find /spool -mtime +7 -a -exec rm -f
This line removes any file in the /var/spool directory one week after the last modification.
For more information about creating cron jobs and using the crontab command, see "How to Set Up an Accounting System" in AIX 5L Version 5.2 System Management Guide: Operating System and Devices.
For example, use e-mail to make a general announcement or add to the message of the day (/etc/motd) asking users to clean up their files. To change the message of the day, see "How to Change the Message of the Day" in AIX 5L Version 5.2 System Management Guide: Operating System and Devices.
Create a script to identify all users whose disk holdings are above a certain threshold and send them e-mail requesting that they clean up their files.
mount /var/spool morespool