Creating a script to download images from multiple cameras using ghoto2


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Creating a script to download images from multiple cameras using ghoto2
# 1  
Old 08-03-2017
Creating a script to download images from multiple cameras using ghoto2

I should start by saying that I am totally new to linux...

I am trying to create a script that downloads images from multiple cameras into a specific folder on my machine. Ideally renaming the images as they are downloaded.

I have installed gphoto2 which as a command line interface that allows me to communicate with the cameras.

There are a few commands that I think will come in handy, either
Code:
[--list-cameras] [--list-ports] [--stdout] [--stdout-size]
or
[--auto-detect] [--port PATH] [--speed SPEED] [--camera MODEL]

This will list all the cameras currently connected to my machine.

Then,
Code:
[[-p RANGE or NAME] | [--get-file RANGE or NAME]] [[-P] | [--get-all-files]]

to download the images. I hope this is enough information to get started!

Last edited by vbe; 08-03-2017 at 12:30 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating script with multiple job arrays

Hello everyone, First of all this is my first post and im fairly new to working with Unix and creating scripts etc. so there will probably be wrong phrases used. Lets get to my questions. I have multiple scripts that submit Slurms/Jobs to the cluster starting like this and doing certain... (3 Replies)
Discussion started by: idbemad
3 Replies

2. Shell Programming and Scripting

How to download Images and Json file from server(godaddy) to Local machine (Ubuntu 14.04).?

Hi Guys, Just entering the Linux word, So I need help to write a script on my local machine(Ubuntu 14.04) that continuously check the particular folder(contains images) and a json file on the server and download whenever new images are added to that folder and whenever there is a change in the... (10 Replies)
Discussion started by: g4v1n
10 Replies

3. Shell Programming and Scripting

Bash Script to find/sort/move images/duplicate images from USB drive

Ultimately, I'm looking to create a script that allows me to plug in a usb drive with lots of jpegs on it & copy them over to a folder on my hard drive. So in the process of copying I am looking to hash check them, record dupes to a file, copy only 1 of the identical files (if it doesn't exsist... (1 Reply)
Discussion started by: JonaQuinn
1 Replies

4. Shell Programming and Scripting

Download images from the first column and rename it with the second column in a loop: Please help!

Dear Friends, I have a very little knowledge on shell scripting. I am stuck with a problem for which I need an expert advice. I have a .txt file "image_urls.txt" which contains the data like this imageurl ... (2 Replies)
Discussion started by: Praveen Pandit
2 Replies

5. Shell Programming and Scripting

creating multiple sub-/directories using a shell script

0 Hi, I am looking for a way of creating multiple directories using the mkdir -p command in a shell script. I'm working with an Ubuntu machine and try to do something like that: #!/bin/sh ... (3 Replies)
Discussion started by: frymor
3 Replies

6. UNIX for Advanced & Expert Users

creating thumbnails of images

Hi, Is there any tool for Solaris (or Linux) to create thumbnails of .TIF/.pdf images? I heard of “Image Magick” but not much of info got to implement it. It must provide CLI tool so I can do for few millions of images by using scripting. TIA Prvn (0 Replies)
Discussion started by: prvnrk
0 Replies

7. Filesystems, Disks and Memory

Creating disk images

I'm sure this is an easy one to answer - how do I turn a directory into a disk image of the sort that is mountable via mount -o loop? I've been playing with comressed ram disk images on floppies (dd if=/dev/fd0 of=disk1.img.gz; gzip -d disk1.img), and it seems that when i mount them and alter... (1 Reply)
Discussion started by: Karma
1 Replies
Login or Register to Ask a Question