I try to write a script that do a complete shutdown of my observatory. I use indi_getprop, indi_setprop and indi_eval for doing some action before the shutdown.
when i use indi_eval like this :
indi_eval -t 0 -w '"CCD Simulator.CCD_EXPOSURE._STATE"==1'
it do the job either in command line or in a shell script.
But, if i want use the same command with variable like this :
it doesn't work because it cannot resolve the INDI_CCD variable. The problem is du to the single quote. I don't know how to resolve this issue.
Does some people have ever had this issue and how to correct it ?
Yes, quoting variable in shell can be tricky.
Other can have better idea, but for me this work. Please note the unclose " in the export command, it is closed in the indi_eval command.