PDA

View Full Version : [Shell] Run a script each 30 seconds



carlosgs91
January 7th, 2010, 04:37 PM
,

konqueror7
January 7th, 2010, 04:42 PM
Hi, I want to monitor a folder in my computer where I have all my downloads and I want to upload a file called stats.html with the download folder content to my server, then with PHP I can compare stats.html and stats.old.html and see what files are being downloaded and which ones are downloaded.

The problem is that I want my computer to send this file, let's say each 30 seconds, I'm new with the sell, how I could make this shell program to be runned each 30 seconds?
use crontab (http://adminschoice.com/crontab-quick-reference)