home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.misc
- Path: sparky!uunet!destroyer!ubc-cs!unixg.ubc.ca!physics.ubc.ca!unruh
- From: unruh@physics.ubc.ca (William Unruh)
- Subject: Re: tmp doesn't seem to be clearing. . .
- Message-ID: <unruh.716516734@physics.ubc.ca>
- Keywords: tmp files hvtmp
- Sender: news@unixg.ubc.ca (Usenet News Maintenance)
- Nntp-Posting-Host: physics.ubc.ca
- Organization: University of British Columbia, Vancouver, B.C., Canada
- References: <1992Sep10.120029.6372@eng.ufl.edu> <2096@dutiws.tudelft.nl>
- Date: Tue, 15 Sep 1992 00:25:34 GMT
- Lines: 25
-
- graaff@dutiws.tudelft.nl (Hans de Graaff) writes:
-
- >In article <1992Sep10.120029.6372@eng.ufl.edu> dlopata@stat.ufl.edu (David Lopata) writes:
- >>Every couple of days, I find myself clearing out the /tmp directories on the ELCs,
- >>because the file system files up. Most of the files in /tmp are zero byte files, but there are
- >>several, named hvtmpAAAa0???? that take up serious disk space.
- >>
- >> Is it just me, or should /tmp be clearing when the user logs off? Did I miss a flag
- >>somewhere?
-
- >As far as I know SunOs only clears files in tmp on a reboot, not on a
- >logout. The hvtmp* files are generated by HelpViewer, the PostScript
- >help thing that gets started up automatically from the standard
- >openwin-init script. If a user leaves OpenWin without explicitly
- >quitting the helpviewer it will not remove its tmp-file, which is only
- >about 800K... One solution is to remove the helpviewer from the
- >default startup-script.
-
- >Hans
- >--
-
-
- Another is to run a cron every night to clear out old tmp files ( say
- older than 3 days) eg
- 30 4 * * * find /tmp/ \( -atime +3 -a ! -type d \) -exec rm -f {} \;
-