To download everything on the to /test, you could use
mdl A/ /test
Note the trailing / on the A/ is because the root directory in the canon OS is actually name "A/". For other directories, you would not use the trailing /, e.g. mdl CHDK/SCRIPTS my-script-backup
With either command, you can use -pretend to see what it would do.
Perfect, thank you for that
Another question that relates to what you said a little bit ago:
or write output that is piped into chdkptp, so for example you start your program like
remote_program | chdkptp.sh
and then when your program sees the zoom button, it outputs something like
=click('zoom_in')
So, my programming skills are mediocre at best, and I typically catch on quickly... but I'm not going to lie, I didn't know what "piping" was until yesterday. That's what I want to do, but I didn't realize it was the "|" command... so apologies for my ignorance haha. I am running into troubles with this, and hopefully you can clarify something for me. I figured out how to read a remote input from here:
http://ericgoebelbecker.com/2015/06/raspberry-pi-and-gamepad-programming-part-1-reading-the-device/and made a test Python program that looks like this:
#!/usr/bin/env python
#it said /usr/bin/ env python
import sys
from evdev import InputDevice, categorize, ecodes, KeyEvent
remote = InputDevice('/dev/input/event0')
for event in remote.read_loop():
if event.type == ecodes.EV_KEY:
keyevent = categorize(event)
if keyevent.keystate == KeyEvent.key_down:
if keyevent.keycode == 'KEY_B':
#print "Zoom Out"
sys.stdout.write('c')
elif keyevent.keycode == 'KEY_F':
print "Zoom In"
elif keyevent.keycode == 'KEY_PLAYPAUSE':
print "Start"
elif keyevent.keycode == 'KEY_STOPCD':
print "Stop"
For this test, I am just trying to set one button press to be a standard output (which I want to be chdkptp.sh) and if the "KEY_B" is pressed, to pipe that output to chdkptp. The rest can be just printed to the screen for now.
What I don't understand is how to
set up the pipe. Do I do this from the command line? I have tried this and get an error that says the command is not found (the picture I attached). I have Googled this issue and can't find anything. I feel like this is a very simple thing to set up, but can't. Again, I know this particular question is programming related, and not chdk related, but reyalp, you have been quick with your responses.