Be sure to substitute in the proper device name instead of dc2xx0 if the camera was not assigned dc2xx0. To list all files on the camera run the following command:

bash$ python cdp.py
  

To download a single image from the camera run the following command, remember to modify the command accordingly for your specific camera:

bash$ python cdp.py 2:DC265_01/P0000748.JPG 
  

That command will download the image P0000748.JPG to the directory DC265_01 in the current directory. A quick and easy command to download all the images from the camera would be:

bash$ for file in $(python cdp.py); do python cdp.py $file; done
  

This is just a few of the many ways such a script can work. It is possible to use the above command in a larger shell script to automate downloading the images from the camera, converting the images to another format, resizing the images, creating a web page automatically, and many many others. The options are endless when it comes to scripts like this.

4.3. gPhoto

gPhoto Web Site

Still deciding the best way to implement this section. Possibly a DocBook manual for gPhoto needs to be written but according to the gPhoto project web site a manual is being developed at the moment. Contact with the developers of gPhoto has been made and a decision to work on the document at some point, presum