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 at linux.org.tr Icq:326600 ---------------------------------------------------------------------------- Tolun ARDAHANLI Computer Engineer E-mail:tolun.ardahanli at linux.org.tr Icq:326600 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080319/6589a484/attachment-0002.html>
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 at linux.org.tr Icq:326600 ---------------------------------------------------------------------------- Tolun ARDAHANLI Computer Engineer E-mail:tolun.ardahanli at linux.org.tr Icq:326600 ------------------------------------------------------------------------------ _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080319/65e3429c/attachment-0002.html>
2008/3/19, Tolun ARDAHANLI <tolun.ardahanli at 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 -- XMPP: sjolle at swissjabber.org
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.