|
On 05/02/07, Mark S. Waterbury <mark.s.waterbury@xxxxxxx> wrote:
Hello, all: In most Unix systems, files created in the /tmp directory are (eventually) cleaned-up and deleted, somehow ... perhaps via a CRON job? Can anyone suggest techniques or tools for cleaning up IFS stream files and subdirectories in the /tmp directory of the IFS? What are the recommended ways of doing this on i5/OS?
Hi Mark
I use QSH commands to do similar:
QSH CMD('find /path/to/files -atime +70 +
-print | xargs rm -rf')
which deletes anything below the target folder last accessed more than
70 days ago. Another one
QSH CMD('find /path/to/files/ -ctime +8 -exec rm {} \;')
deletes files created more than eight days earlier. These run as part
of an overnight run but they could be put in the job scheduler just as
easily. Use 'find /tmp -type f' to restrict to just files, if the
directory structure under /tmp needs to be kept.
Regards, Martin
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.