Minecraft wiki entry for Mac_Scripting_Tutorial, associated text: 1 Example Script
2 Example Script Breakdown
2.1 Exit Status
2.2 Variables
2.3 Logging
2.4 Running Tectonicus
2.5 Transferring The Map with Rsync
2.6 Timing and Completion
3 Making Things Run Automatically With Cron
4 Wrapping Up