× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.