![]() |
Linux System.Exec does not execute? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67) +---- Forum: Confluence (https://forum.kodi.tv/forumdisplay.php?fid=125) +---- Thread: Linux System.Exec does not execute? (/showthread.php?tid=221021) |
System.Exec does not execute? - wusthans - 2015-03-11 Hi, I added a custom menu entry to Home.xml: Code: <item id="8"> The sh does only contain Code: sudo reboot When I click on the menu entry, it seems to be the RPi does something, because the mouse movement is not fluid for a second. But the system does not reboot. The log does not say anything about a failed script. It justs holds some info about 3 devices. I also tried a python script: Code: #!/usr/bin/python Same result. Could someone help me please? Re: RE: System.Exec does not execute? - doug - 2015-03-12 Too many sudos? How about Code: ... Code: ... RE: System.Exec does not execute? - wusthans - 2015-03-12 Thank you but I tried that too. Does not work. I also tried Code: <onclick>System.Exec(/bin/sh /home/xbian/test.sh)</onclick> afaik the /bin/sh is neccessary because System.Exec cannot run scripts directly. But I am not sure for 100%. RE: System.Exec does not execute? - wusthans - 2015-03-13 Fixed it myself. I use RunScript(...) now. |