Re: syntax for shell wait-event command?
fred konkin via Gphoto-user <[email protected]>
| Newsgroups | gmane.comp.multimedia.gphoto.user |
|---|---|
| Message-ID | <[email protected]> |
It looks like the shell command now works perfectly with the syntax: wait-event-and-download FILEADDED Thanks a lot for the quick patch! -------------------------------------------- On Tue, 12/12/17, Marcus Meissner <[email protected]> wrote: Subject: Re: [Gphoto-user] syntax for shell wait-event command? To: "fred konkin" <[email protected]> Cc: [email protected] Received: Tuesday, December 12, 2017, 12:22 AM Hi, On Sat, Dec 09, 2017 at 08:48:27PM +0000, fred konkin via Gphoto-user wrote: > Hi - gphoto works well for the most part but I have one question: what is the syntax for the shell equivalent of the CLI command (which works perfectly): > > gphoto2 --set-config /main/settings/capturetarget=1 -q --keep --wait-event-and-download=FILEADDED > > When I start the shell and try the obvious guess: "wait-event-and-download=FILEADDED", I get "ERROR: Invalid command". Other variants also don't work. Eg, "wait-event-and-download FILEADDED" gives "Waiting for FILEADDED event from camera. Press Ctrl-C to abort." Note the double space - it appears to be waiting for " FILEADDED" instead of "FILEADDED", and it doesn't detect a picture capture. > > I don't want to use "gphoto2 --wait-event-and-download=FILEADDED --shell" because I need to intersperse multiple get/set commands with multiple picture captures, all within the same shell instance (for speed and efficiency - I do time lapse and may have thousands of frames by the end of the sequence). > > I use gphoto2 v 2.5.15, libgphoto2 v 2.5.16, running on up to date Raspbian Jessie, connected to a Nikon D7000. This was a bug in the --shell parser. I have applied the attached patch to GIT. Thanks for the report! Ciao, Marcus -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gphoto-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gphoto-user