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...