←  [EN] Enduser support

Forums

»

execute script using the remote control

abra's Photo 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 ?

Quote

littlesat's Photo littlesat 8 Oct 2017

Yep.. via hotkey...
Quote

abra's Photo abra 8 Oct 2017

Could you please provide some details about how exactly ? And can this also be done without using hotkeys ?
Quote

littlesat's Photo littlesat 8 Oct 2017

With hotkey it is much easier. Just put the sh in a directory and configure it.
Quote

ozzsurf's Photo 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

 

???

Quote

ims's Photo 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.
Quote

ozzsurf's Photo ozzsurf 8 Oct 2017

cant see Shellscripts anywhere

 

 

Attached Files

Quote

littlesat's Photo littlesat 8 Oct 2017

Did you put the .sh on /usr/script op your box!

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.
Quote

ims's Photo ims 8 Oct 2017

script with .sh must be in /usr/script  ... tried now and Shellscripts is on end of tree

Quote

ozzsurf's Photo ozzsurf 8 Oct 2017

yeah i have the script in usr/script

 

so how do i navigate to the script with hotkey

Quote

ims's Photo ims 8 Oct 2017

empty test script do-some.sh  ... tried under rc6

Attached Files


Edited by ims, 8 October 2017 - 18:58.
Quote

ozzsurf's Photo ozzsurf 8 Oct 2017

i rebooted Shellscripts now shows

and all my scripts

 

thanks

Quote

betacentauri's Photo 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.

Quote

ozzsurf's Photo 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

Quote

littlesat's Photo littlesat 8 Oct 2017

To see if the script is finished...
Quote

ozzsurf's Photo 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

Quote

littlesat's Photo littlesat 9 Oct 2017

Why do you want to have it auto exit? Then you can't see if it was successful. And what are you trying to do with the scripts. Probably there exists a different solution.
Edited by littlesat, 9 October 2017 - 06:29.
Quote

Pr2's Photo 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.

Quote

littlesat's Photo littlesat 9 Oct 2017

I want to make is smart... so please no config or so required. But still I did not get an answer what the script is doing and why auto close is required
Quote