execute script using the remote control
abra 8 Oct 2017
is it possible with open pli 6 rc (on vu+ duo2) to execute scripts on the receiver by using the remote control ? if yes, how ?
abra 8 Oct 2017
littlesat 8 Oct 2017
ozzsurf 8 Oct 2017
i have script in /usr/script/do-something.sh
which i want to run with long red
so i start hotkey select long red
how to navigate to /usr/script and select do-something.sh
???
ims 8 Oct 2017
Open Hotkey setting , press OK on "Red long" and then attache your script under "Shellscripts", then save
@littlesat: would not be better - if is /usr/script empty or not exist - display item Shellscripts always in tree and if user will open it, then there will be some as "place your script into /usr/script" ? It would be good help for this. Without it most users do not know, that this feature exist.
Edited by ims, 8 October 2017 - 18:31.
littlesat 8 Oct 2017
Even when the dir is made users don't know... that is where the forum is for...
Edited by littlesat, 8 October 2017 - 18:47.
ims 8 Oct 2017
script with .sh must be in /usr/script ... tried now and Shellscripts is on end of tree
ozzsurf 8 Oct 2017
yeah i have the script in usr/script
so how do i navigate to the script with hotkey
ims 8 Oct 2017
empty test script do-some.sh ... tried under rc6
Attached Files
Edited by ims, 8 October 2017 - 18:58.
betacentauri 8 Oct 2017
According to the code the script has to end with .sh (lower case!):
https://github.com/O.../Hotkey.py#L218
So you should be able to see it.
ozzsurf 8 Oct 2017
is there any reason why the plugin dont auto exit when its done its thing ?
you have to push exit on remote
ozzsurf 8 Oct 2017
if i edit the Hotkey.py
can you tell me what line to edit and with what
to make the plugin auto exit
thanks
littlesat 9 Oct 2017
Edited by littlesat, 9 October 2017 - 06:29.
Pr2 9 Oct 2017
It would be nice if we can decide if we want to have an auto-exit or not.
Some scripts doesn't output on screen, they just create a log file, or perhaps there is no need to check the output.
So it is not always mandatory to have the script exit blocked after running it.
It is even better to not have the script blocked at exit because then you can decide to block the script ending with it a "read -p "Press any key to continue"" the opposite way is not possible.