Hey

Well, the're no big differance if you don't go deep into predefined global arrays like $_SERVER, $_REQUEST etc. May be I forgot something, but it is really almost the same for CLI as for normal Web.

As for the error handling - there is a tricky thing that result of script execution can be send to your e-mail and you will be notified on any errors, just turn on error output. You can also use this for status notify. Anything that normally script outputs to the browser will be sent to you (look at cPanel cron task options), so you can echo/print notification messages and review them next morning.

Good luck!