- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Cleaning /tmp directory
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
07-25-2006 02:28 AM
07-25-2006 02:28 AM
I have install a little script witch creates logfile in /tmp directory every days. I would like to keep they for a month. But after few days these files disappear !
I look in every cronfile and cannot found out any instruction for the cleaning of the /tmp directory.
How it is possible ?
I run with Linux Enterprise AS (v4).
Thanks for your help
Roland
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 02:41 AM
07-25-2006 02:41 AM
SolutionThere's probably a script running which cleans out /tmp every now and then. I don't use RedHat, but I can imagine that they too have an /etc/cron.daily directory which contains scripts that are run once every day. This way you don't litter your personal crontab with every day maintenance, but also makes it a little more difficult to see what actually happens.
My guess would be to check for directories like /etc/cron.daily and /etc/cron.weekly and see if it contains cleanup scripts.
Greetings,
Hans
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 02:43 AM
07-25-2006 02:43 AM
Re: Cleaning /tmp directory
You can add an exclusion for your directory with the -x option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 02:53 AM
07-25-2006 02:53 AM
Re: Cleaning /tmp directory
I would rader use /var/log (it's more standard way).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 03:06 AM
07-25-2006 03:06 AM
Re: Cleaning /tmp directory
I found it in /etc/cron.dayly/tmpwatch.
Thanks to give me this quick answer.
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 03:08 AM
07-25-2006 03:08 AM