Kodi Community Forum
How to create favorite entry to run script or ssh command? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: How to create favorite entry to run script or ssh command? (/showthread.php?tid=369269)



How to create favorite entry to run script or ssh command? - Doktor-X - 2022-08-14

Hello, i have one question. How can i create item in my favorites that will run ssh command of my choise?

Correntry im using my phone to run command using app ssh commands, but i would like to be able to run command from kodi gui itself


RE: How to create favorite entry to run script or ssh command? - DaVu - 2022-08-16

You could write your own little script-Addon and use a python built in funktion for that. 

https://kodi.wiki/view/List_of_built-in_functions

"System.Exec(exec)" should do what you are searching for

But I would rather think about a keypress on the keyboard or the remote to execute a specific hardcoded command. It becomes more difficult if the commands will change


RE: How to create favorite entry to run script or ssh command? - Doktor-X - 2022-08-17

Thanks, ill look into that