Easier automated iSight snapshots talks briefly of command-line utility for working with an iSight camera. I've been successfully using it for my home automation webcam.