Start script
Dave Ihnat
dihnat at dminet.com
Tue Feb 21 00:00:23 UTC 2012
On Mon, Feb 20, 2012 at 11:38:49PM +0100, suvayu ali wrote:
> Or use tmpwatch to do the cleaning.
A good suggestion. I would also point out a warning to developers--of both
compiled programs and scripts.
It's a poor program or script that creates files in /tmp or /usr/tmp and
doesn't take appropriate steps to protect itself. You should *expect*
files and/or directories to be deleted from temporary directories.
So how do you protect yourself? Set the sticky bit on files and
directories. Keep them open as long as you're going to need them (open
files and directories can't be "really" deleted.) And, of course,
be good about cleaning up after yourself when you no longer need them.
Good developers are paranoid.
Cheers,
--
Dave Ihnat
dihnat at dminet.com
More information about the users
mailing list