View Single Post
  #4  
Old 13th December 2005, 10:20
themachine themachine is offline
Senior Member
 
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you want it to run say, every hour you could create a cron tab by doing:

Code:
Edit your crontab:
# crontab -e


Type this in the file:
1 * * * * /root/scripts/freshen_dir.sh 2>&1 >> /var/log/freshen_dir.log
You would of course need to name this script "freshen_dir.sh", and mv it to /root/scripts.... change that to whatever you want.


The "2>&1 >> /var/log/freshen_dir.log" will send all output (errors and std_out) to a log file for review.

Cheers!
__________________
themachine
5dollarwhitebox.org
Reply With Quote