Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Deleting Stats With Cron
JAKStar
post Aug 22 2005, 12:23 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 22-August 05
Member No.: 5,420



Hello...hoping someone can help me get this newbie on track!

I am trying wanting to automatically delete stats files every month

Shooting for: Every month on the 28th at 2am

0 2 28 * * rm -rf /home/user/tmp/awstats.domainname.conf

Did I get it right? blink.gif

Thanks for any assistance out there...
Go to the top of the page
 
+Quote Post
DS2K3
post Aug 22 2005, 12:29 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



YOu could isntall webmin, (www.webmin.com) which makes setting up CRON jobs a breeze. No idea if you got it right though...

I guess you want the stats, but if not, just symlink /home/user/tmp/awstats.domainname.conf to /dev/null (provided its just a log, nothing bad will happen. If a program relies on it, then you might get problems)

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post
Termina
post Aug 24 2005, 09:26 PM
Post #3


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



QUOTE (JAKStar @ Aug 22 2005, 12:23 PM)
Hello...hoping someone can help me get this newbie on track!

I am trying wanting to automatically delete stats files every month

Shooting for: Every month on the 28th at 2am

0 2 28 * * rm -rf /home/user/tmp/awstats.domainname.conf

Did I get it right? blink.gif

Thanks for any assistance out there...

That looks fine. No need for the -r though.


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 11th December 2017 - 12:41 AM