That said, I'm don't really understand why you want to run rawopint from within multicam.lua. The purpose of multicam is primarily synchronized shooting with multiple cameras. Using to to run a different script to do the shooting doesn't really make sense to me. If you just want to start a script on several cameras, multicam seems like needless complication, you do do a very simple script to iterate over chdk.list_usb_devices. See extras/simplemulticam.lua for a possible starting point, though beware it may be out of date. Or just use a chdkptp command script to connect to each camera in turn by name or serial number.
what i'm trying to make is a rig with 2 cams that shoot syncronised without end. i'm not that interested in getting it right up until the milisecond, but the closer i get, the better.
i was thinking of using multicam for that or use an usb 5v pulse. i wouldn't know of any other methods available, or it must be this:
https://chdk.setepontos.com/index.php?topic=14195.msg144819#msg144819however, i would like the cams to keep shooting even if the pc is not available with the risk of loosing syncronisation due to rtc differences between cameras.
this means something has to run cam side that keeps the interval going if there is no message from the pc within the set time.
and if all that is working i want the cam to use some long exposure calculations, like what i use in SUIx. and after that, it can be tested and used.
maybe downloading between shots while a script is active will come into play again...and hopefully i've accumulated the knowledge to make that by then.
seperate, but related:
i also have this one project that is running for over 4 years now with one stand alone cam. this cam needs occasional syncronisation with time and i do that by hand.
i wrote a simple line to only set the clock: press the button and all active cams will be set.
since mc already had utc and a fairly accurate timing loop it looked most obvious for me to use that.
i was thinking of connecting the pc every now and then to that cam to set the clock.
this can be done each time i exchange the sd card, but ideally i think it should be possible to do that at any given moment during the script run (reboot, between shots, maybe once a day)
should this entail stopping the cam side script, setting rtc, starting the cam side script? or is there a way to do this while the cam side script is running, like with a message or f.i. by counting shots taken this day.
those are things that i'm thinking about and when i get stuck, as a distraction, i sometimes spend days in solving something trivial, like a shortcut instruction for chdkptp.
i installed libreadline8, as for running misc/setup-ext-libs.bash that ended sadly:
### building Lua ###
setup-ext-libs.bash error: make linux
i'm running 21.10 as i see from the readme that's untested, moving to 22.04 in a few weeks