PDA

View Full Version : Upload Script Help Needed


hsthompson
March 11th, 2008, 08:12 PM
Hi all. I'm a UNIX n00b with a specific task I want to accomplish. I need something that can run in the background, without taking up much memory or processor power. I don't know anything about shell scripting, so any help would be appreciated.

Here's what I need to do:

1) watch a file/folder for updates
2) if there's an update, upload the update to a web server

xserve@home
February 9th, 2009, 12:46 AM
It may be easier to write an Applescript to do this, but if you want to write a shell script..I would create a script that check a change in the appropriate files then started the upload. Then enter an entry in your crontab file (check out the 'crontab -e') command and run the script every 5 or 10 minutes or so.