`caffeinate' seems to be a command-line ripoff of http://www.lightheadsw.com/caffeine/
The source code of caffeinate(8) is available at http://opensource.apple.com/source/PowerManagement/PowerMana...
Sometimes I leave command line programs running overnight then get annoyed when I find that my Mac went to sleep after an hour because I'd forgotten to adjust the power saving settings.
So running caffeinate -u <my command> will be very handy indeed