the camera would be on anyway, so it would last a few hours.
what you could do is:
- take a camera that is able to power on when connected to USB
- do a small timer that powers on the camera every (say) hour
- do an aout-start script on th camera that takes a shot, then shuts down
Anyway, I don't know how many power-on cycles can you have with a normal set of batteries....