syntax for shell wait-event command?

fred konkin via Gphoto-user <[email protected]>
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <[email protected]>
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.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.