Koozali.org: home of the SME Server

cron job /tmp

mutation111

cron job /tmp
« on: May 28, 2007, 08:53:18 PM »
is it possible to setup a cron job to delete the content of /tmp?  /tmp fills up completely every few weeks.

Thanx

Mike

Offline mmccarn

  • *
  • 2,657
  • +10/-0
cron job /tmp
« Reply #1 on: May 30, 2007, 02:58:21 AM »
It should be pretty easy to write a script to clear out /tmp -- but I run 10 or so SME boxes and none of them fill the /tmp folder every couple of weeks.

Of course, my SME seems to have a job scheduled (/etc/cron.daily/tmpwatch)  that looks like it clears out /tmp and some other folders...

the files in /etc/cron.daily are run daily as scheduled in /etc/crontab...

Perhaps something has happened to your default /etc/crontab or the contents of /etc/cron.daily?