On 12/08/2012 06:11 AM, Reindl Harald wrote:
Am 07.12.2012 19:55, schrieb Jerry Geis:
Is there something that "automatically" removes files in the /tmp directory on a scheduled basis? Perhaps like at the start of the month or something.
yes, tmpwatch
I had a number of files stored there and they are just gone. Very odd
*lol* some people still need to learn it the hardway that the sys /tmp folder is NOT A DATASTORAGE
Yep - got me. Luckily I had other copied of the items. Just not on the machine I needed it at the time.
Thanks,
Jerry
From: Jerry Geis geisj@pagestation.com
Yep - got me. Luckily I had other copied of the items. Just not on the machine I needed it at the time.
You also have '/var/tmp' that is expected to survive reboots and should be less often (never?) cleared.
JD
Am 10.12.2012 um 11:22 schrieb John Doe:
From: Jerry Geis geisj@pagestation.com
Yep - got me. Luckily I had other copied of the items. Just not on the machine I needed it at the time.
You also have '/var/tmp' that is expected to survive reboots and should be less often (never?) cleared.
cat /etc/cron.daily/tmpwatch flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ -X '/tmp/hsperfdata_*' 240 /tmp /usr/sbin/tmpwatch "$flags" 720 /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 720 "$d" fi done
720 = 30 days
-- LF
Leon Fauster wrote:
Am 10.12.2012 um 11:22 schrieb John Doe:
From: Jerry Geis geisj@pagestation.com
Yep - got me. Luckily I had other copied of the items. Just not on the machine I needed it at the time.
You also have '/var/tmp' that is expected to survive reboots and should be less often (never?) cleared.
cat /etc/cron.daily/tmpwatch flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ -X '/tmp/hsperfdata_*' 240 /tmp /usr/sbin/tmpwatch "$flags" 720 /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 720 "$d" fi done
720 = 30 days
what? you mean this dir called /var/tmp is actually for temporary stuff?? man, this system is seriously screwed up...
Am 10.12.2012 um 16:05 schrieb Nicolas Thierry-Mieg:
Leon Fauster wrote:
Am 10.12.2012 um 11:22 schrieb John Doe:
From: Jerry Geis geisj@pagestation.com
You also have '/var/tmp' that is expected to survive reboots and should be less often (never?) cleared.
cat /etc/cron.daily/tmpwatch flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ -X '/tmp/hsperfdata_*' 240 /tmp /usr/sbin/tmpwatch "$flags" 720 /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 720 "$d" fi done
720 = 30 days
what? you mean this dir called /var/tmp is actually for temporary stuff?? man, this system is seriously screwed up...
i am just communicating the actual technical situation - the meaning depends on the reader.
those directories are cleaned on a regular basis, if tmpwatch is installed (the code above is from tmpwatch.rpm).
this is said to show a different perspective compared to the above statement "...should be less often (never?) cleared"
i dont want to discuss the implications of world writeable/sticky directories :-)
-- LF
Am 10.12.2012 um 11:22 schrieb John Doe:
From: Jerry Geis geisj@pagestation.com
You also have '/var/tmp' that is expected to survive reboots and should be less often (never?) cleared.
cat /etc/cron.daily/tmpwatch flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ -X '/tmp/hsperfdata_*' 240 /tmp /usr/sbin/tmpwatch "$flags" 720 /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 720 "$d" fi done
720 = 30 days
what? you mean this dir called /var/tmp is actually for temporary stuff?? man, this system is seriously screwed up...
What else do you use it for?
Rudi Ahlers wrote:
Am 10.12.2012 um 11:22 schrieb John Doe:
From: Jerry Geis geisj@pagestation.com
You also have '/var/tmp' that is expected to survive reboots and should be less often (never?) cleared.
cat /etc/cron.daily/tmpwatch flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ -X '/tmp/hsperfdata_*' 240 /tmp /usr/sbin/tmpwatch "$flags" 720 /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 720 "$d" fi done
720 = 30 days
what? you mean this dir called /var/tmp is actually for temporary stuff?? man, this system is seriously screwed up...
What else do you use it for?
I think John intended the cmt with <humor></humor>
mark "temporary files are temporary? who'd'a thunk it?"
On Mon, Dec 10, 2012 at 6:58 PM, m.roth@5-cent.us wrote:
Rudi Ahlers wrote:
Am 10.12.2012 um 11:22 schrieb John Doe:
From: Jerry Geis geisj@pagestation.com
You also have '/var/tmp' that is expected to survive reboots and should be less often (never?) cleared.
cat /etc/cron.daily/tmpwatch flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ -X '/tmp/hsperfdata_*' 240 /tmp /usr/sbin/tmpwatch "$flags" 720 /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 720 "$d" fi done
720 = 30 days
what? you mean this dir called /var/tmp is actually for temporary stuff?? man, this system is seriously screwed up...
What else do you use it for?
I think John intended the cmt with <humor></humor>
mark "temporary files are temporary? who'd'a thunk it?"
Probably. But I've seen people using /tmp to store rather important stuff, which is why I asked the question - to get clarity.
On 10.12.2012, at 18:01, Rudi Ahlers Rudi@SoftDux.com wrote:
On Mon, Dec 10, 2012 at 6:58 PM, m.roth@5-cent.us wrote:
Rudi Ahlers wrote:
Am 10.12.2012 um 11:22 schrieb John Doe: > From: Jerry Geis geisj@pagestation.com > > You also have '/var/tmp' that is expected to survive reboots and > should be less often (never?) cleared.
cat /etc/cron.daily/tmpwatch flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ -X '/tmp/hsperfdata_*' 240 /tmp /usr/sbin/tmpwatch "$flags" 720 /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 720 "$d" fi done
720 = 30 days
what? you mean this dir called /var/tmp is actually for temporary stuff?? man, this system is seriously screwed up...
What else do you use it for?
I think John intended the cmt with <humor></humor>
mark "temporary files are temporary? who'd'a thunk it?"
Probably. But I've seen people using /tmp to store rather important stuff, which is why I asked the question - to get clarity.
Sure. I've also seen people using the Windows trash can for the very same purpose.
In the IT business, there is a word for that kind of people. We call them 'stupid'.
Cheers,
Peter.
On 12/10/2012 06:01 PM, Rudi Ahlers wrote:
Probably. But I've seen people using /tmp to store rather important stuff, which is why I asked the question - to get clarity.
What is "important"?
I keep a "yum list >/tmp/yum.lst" in /tmp.
That's important to me, as I often search for packages.
If the file is gone, I know it was too old, and I'll have to redo the yum list.
Very practical, as yum list can take a while with additional repositories.
Mogens
Hi Mogens,
What is "important"?
valid question.
I would define 'important' or rather 'valuable' (in a material or non-material sense) in terms of reproducability. If it costs you (personal) time, effort or money to reproduce them, or if the data are irreprocible to reproduce and might be needed later on, /tmp and friends are the wrong place.
In addition to that, normally /tmp is not a file system that would be backed up. No place for production data of any kind.
I keep a "yum list >/tmp/yum.lst" in /tmp.
That's important to me, as I often search for packages.
But it's easily reproducable with one command, even in cron. So it's not what I would call 'valuable data'. It's redundant, kind of a cache.
By the way, what's wrong with 'yum search'? Too slow?
Best regards,
Peter.
Am 10.12.2012 um 18:01 schrieb Rudi Ahlers:
On Mon, Dec 10, 2012 at 6:58 PM, m.roth@5-cent.us wrote:
Rudi Ahlers wrote:
What else do you use it for?
I think John intended the cmt with <humor></humor>
mark "temporary files are temporary? who'd'a thunk it?"
Probably. But I've seen people using /tmp to store rather important stuff, which is why I asked the question - to get clarity.
i would suggest another point of view - what should use tmp? Users, Admins speak humans or scripts, apps speak machines?
:-)
-- LF
On Tue, Dec 11, 2012 at 9:57 PM, Leon Fauster leonfauster@googlemail.com wrote:
Am 10.12.2012 um 18:01 schrieb Rudi Ahlers:
On Mon, Dec 10, 2012 at 6:58 PM, m.roth@5-cent.us wrote:
i would suggest another point of view - what should use tmp? Users, Admins speak humans or scripts, apps speak machines?
It's for whatever you like to use it for that you don't mind losing. I sometimes put packages there that I am going to install, sometimes script temporary files, sometimes data files I want to look at, eg chunks of log files. Some packages (eg Apache Tomcat) seem to use it too. I've used it for script generated scripts too.
Cheers,
Cliff
Rudi Ahlers wrote:
Am 10.12.2012 um 11:22 schrieb John Doe:
From: Jerry Geis geisj@pagestation.com
You also have '/var/tmp' that is expected to survive reboots and should be less often (never?) cleared.
cat /etc/cron.daily/tmpwatch flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ -X '/tmp/hsperfdata_*' 240 /tmp /usr/sbin/tmpwatch "$flags" 720 /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 720 "$d" fi done
720 = 30 days
what? you mean this dir called /var/tmp is actually for temporary stuff?? man, this system is seriously screwed up...
What else do you use it for?
oh my, I didn't think it would be necessary but I really should have put a smiley there... the limits of email I guess. as Mark rightly surmised, yes it was an attempt at humor.