Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-22-2005, 08:02 PM   #1
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
the file in the path /tmp is lost

I found that in my rh system , the file in the path /tmp seems have been removed in a certain interval of time ( eg. two weeks ) , so always can't find the file that over 2 weeks , I have checked no cron job will remove the file , could suggest how can I check the reason , is it because any function / service has been enabled ? thx
Old 02-22-2005, 08:04 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Have you rebooted in that time? Some distros nuke /tmp on reboot but not while the system is running. Otherwise check root's crontab and the /etc/crontab file (as well as cron.daily, cron.weekly, etc.) for the offender. There's a program called tmpwatch that does this sort of thing.
Old 02-22-2005, 08:38 PM   #3
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
thx reply , i found a tmpwatch as below , but is not added to the crontab ( I can't see it by crontab -e ) , is the below job run as schedule ? is it the reason why my file in /tmp is lost ? please advise

ll /etc/cron.daily/tmpwatch

/usr/sbin/tmpwatch 240 /tmp
/usr/sbin/tmpwatch 720 /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "$d" ]; then
/usr/sbin/tmpwatch -f 720 $d


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
file in /tmp is lost ust Linux - General 3 03-02-2005 08:52 PM
Why was the relocated /tmp write permission automatically reset (lost)? wirawan0 Mandriva 2 06-26-2004 07:33 PM
file:/tmp - mysterious contents. Rm, or not rm? linuxfond Linux - Newbie 5 06-12-2004 02:00 PM
Create file using 'touch ./tmp.$$', file tmp.3941 is created, why? huangyanfeng Linux - General 1 04-13-2004 03:36 AM
eroaster tmp file write davidschob Linux - Software 4 11-05-2003 09:36 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration