- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- scripts available to clean up /tmp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 07:21 AM
08-14-2002 07:21 AM
Thanks,
..Joe
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 07:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 07:25 AM
08-14-2002 07:25 AM
Re: scripts available to clean up /tmp
30 23 * * 5 find /tmp/* -atime +30 -exec rm {} \;
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 07:28 AM
08-14-2002 07:28 AM
Re: scripts available to clean up /tmp
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc8294b3ef09fd611abdb0090277a778c,00.html
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 07:28 AM
08-14-2002 07:28 AM
Re: scripts available to clean up /tmp
There's some discussion of other alternatives in this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x30108f960573d611abdb0090277a778c,00.html
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 07:29 AM
08-14-2002 07:29 AM
Re: scripts available to clean up /tmp
find /tmp /var/tmp -mtime +3 -exec rm {} \;
However, I do not like this approach because you are fixing the symptoms rather than the problem itself. I absolutely beat into the heads of all developers that this is their responsibility; I consider leaving temp files about as bad as allowing memory leaks to creep into code. I will admit that if someone does a kill -9, there is not a whole lot to be done about that inside the code. I have another baseball bat to deal with that problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 07:30 AM
08-14-2002 07:30 AM
Re: scripts available to clean up /tmp
this is what I do - find old unused files in the tmp dir and remove them:
# find /tmp \( -atime +14 -a -mtime +30 \) -exec rm -r {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 07:32 AM
08-14-2002 07:32 AM
Re: scripts available to clean up /tmp
You can also set this on the crontab and will do it automatically:
# crontab -e
add entry:
07 00 * * * find /tmp \( -atime +14 -a -mtime +30 \) -exec rm -r {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 07:34 AM
08-14-2002 07:34 AM
Re: scripts available to clean up /tmp
...Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2002 12:43 AM
08-15-2002 12:43 AM
Re: scripts available to clean up /tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2002 12:44 AM
08-15-2002 12:44 AM