passing parameters with open()
in
Programming Questions
•
1 month ago
hi.
i'm doing an auto shooter for a DSLR camera using gphot2 library ( http://www.gphoto.org/).
i've tried two different things. none have workerd :/
SECOND APROACH:
i wrote a little script and made it excutable with chmod +x. the script take an argument ($1) to set the filename of the photo file...
again, if i open it with terminal it works like a charm, but in P5:
what am i missing here?
maybe using exec() from the java.runtime could work, but i don't really know how to neither...
please help me!
i'm doing an auto shooter for a DSLR camera using gphot2 library ( http://www.gphoto.org/).
i've tried two different things. none have workerd :/
- String[] params = { "/opt/local/bin/gphoto2", "--capture-image-and-download"};
- open(params);
- open("/opt/local/bin/gphoto2");
SECOND APROACH:
i wrote a little script and made it excutable with chmod +x. the script take an argument ($1) to set the filename of the photo file...
- killall PTPCamera
- gphoto2 --capture-image-and-download --filename $1.jpg
again, if i open it with terminal it works like a charm, but in P5:
- String[] params = { "/Users/pely/shutter_1milesima", "p5"};
- open(params);
what am i missing here?
maybe using exec() from the java.runtime could work, but i don't really know how to neither...
please help me!
1