Your favourite rm in /tmp (was: Your favourite UNIX-pipe (...))

diamond@tkovoa diamond at tkou02.enet.dec.com
Mon Aug 27 09:54:57 AEST 1990


In article <13633 at ulysses.att.com> andys at ulysses.att.com (Andy Sherman) writes:

>Umm, be careful.  We had a mysterious problem here with X11, where
>after about 3 days new clients could not be started up to
>DISPLAY=unix:0.0.  I finally figured out that our /tmp cleanup script,
>which gets rid of trash which has not been accessed for 3 days, was
>removing the UNIX(R) domain socket from /tmp/x11-unix.  :-(.

You mean you put a non-temporary file in /tmp?  Maybe you were asking
for trouble.  If I want a file to last even a day, I put it somewhere
other than /tmp or /usr/tmp.

Incidentally, speaking of cleanup problems, be careful if it's possible
to link another machine's disk into /tmp.  Yeah, like if someone's
testing nfs or a competitor of nfs, so "find" thinks it sees ordinary
disks (not type nfs) and goes ahead and wipes out the served disk.
(No, it didn't happen here.)
-- 
Norman Diamond, Nihon DEC       diamond at tkou02.enet.dec.com
Steering like a sports car:  I use opinions; the company uses the rack.



More information about the Comp.unix.questions mailing list