Hi guys;
Is there any structure/program for scheduled works in Centos 5.1?(I want to empty my /tmp folder at decided hours...How can I do that?)
Thanks a lot...
use crontab utility
----- Original Message ----- From: Tolun ARDAHANLI To: CentOS mailing list Sent: Wednesday, March 19, 2008 1:43 PM Subject: [CentOS] Scheduled works...
Hi guys;
Is there any structure/program for scheduled works in Centos 5.1?(I want to empty my /tmp folder at decided hours...How can I do that?)
Thanks a lot...
-- Tolun ARDAHANLI Bilgisayar Muhendisi E-posta:tolun.ardahanli@linux.org.tr Icq:326600
----------------------------------------------------------------------------
Tolun ARDAHANLI Computer Engineer E-mail:tolun.ardahanli@linux.org.tr Icq:326600
------------------------------------------------------------------------------
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
2008/3/19, Tolun ARDAHANLI tolun.ardahanli@linux.org.tr:
Hi guys;
Hi Tolun
Is there any structure/program for scheduled works in Centos 5.1?(I want to empty my /tmp folder at decided hours...How can I do that?)
Use crontab for custom scripts.
You maybe also look at tmpwatch (removes files which haven't been accessed for a period of time) - /etc/cron.daily/tmpwatch
cheers Simon
Tolun ARDAHANLI wrote:
Hi guys;
Is there any structure/program for scheduled works in Centos 5.1?(I want to empty my /tmp folder at decided hours...How can I do that?)
you should be aware, there are files in /tmp with long time persistence, the only stuff thats absolutely safe to delete is files from before the last reboot. For instance, each SSH session opened to a server creates a directory in /tmp, this is needed as long as that session is in use.