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



I got schooled on cleaning up temp files in the early days of the IFS when we were creating apps that used the IFS, but sometimes didn't clean their temp files due to abnormal terminations, etc.....

Usually IPL time is a good time to clean /tmp and then keep an eye on it as you mention. I would hate to kill a file that's in use by an active process.

These days I have a nice Python script that will scan the IFS for me and show me all the files if I need to review them.

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
------------------------------

message: 5
date: Tue, 27 Feb 2024 06:30:51 +0000
from: Roger Harman <roger.harman@xxxxxxxxxxx>
subject: RE: Who clears /tmp regularly

Well, you should identify the processes that are leaving files there and fix them. In my experience, it was lazy programming that contributed the bulk of files.

In the UNIX world, where I admin'd many many years ago, it was in the startup script to clear /tmp. I wanted to do that on our IBM I at my last employer but wasn't in a position to make that call.

I did make it a point to regularly check /tmp and clear out what I could though. It rarely got over 100 or so files/folders while I was there. I shudder to think what it is now, 2 years after I retired - even though I made them aware of it and suggested an automation to keep it in check.

Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power



-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Don Brown via MIDRANGE-L
Sent: Monday, February 26, 2024 9:04 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: Don Brown <DBrown@xxxxxxxxxx>
Subject: Who clears /tmp regularly

I was trying to provide some files to IBM on a machine we don't regularly look after.

The files were in /tmp

There were over 1 million files in /tmp and it seems you can only enter a filter after the list has been built.

Just curious if you regularly clear this directory or if you have tools to regularly clean up old files or some other approach ?

Cheers

Don



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.