#!/bin/sh gphoto2 \ --capture-image-and-download \ --set-config "/main/imgsettings/imageformat=5" \ --filename "frames/"%Y%m%d-%H-%M-%S.%C \ --interval "10"