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

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

Edit your crontab:
# crontab -e

Type this in the file:
1 * * * * /root/scripts/ 2>&1 >> /var/log/freshen_dir.log
You would of course need to name this script "", 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.

Reply With Quote