iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-16-2004, 10:47 PM
OneMoreBite's Avatar
WebProWorld Pro
 
Join Date: Aug 2003
Location: Vancouver, Washington / Portland, Oregon
Posts: 270
OneMoreBite RepRank 0
Default Basic Cron Job Question

I want to create a cron job to delete all the files in a particular directory. Could someone let me know if the following is correct? File names are not consistent, so I need to delete any and all files found. My understanding, unless I've missed something is that this would run every Sunday at 11:59 PM, and delete all the files in the given directory:

#Cron job to delete contents of directory
59 23 * * 7 rm /path/to/directory/*

Thanks in advance.

Kathryn
__________________
Free E-book & Instructions in Using EFT & NLP for Weight Loss
OneMoreBite-Weightloss.com
Reply With Quote
  #2 (permalink)  
Old 05-17-2004, 12:04 AM
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 447
HardCoded RepRank 0
Default

Yep, that should work.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:54 AM.



Search Engine Optimization by vBSEO 3.3.0