unifiedremote/Remotes

Server crash on Linux with command line

Closed this issue · 3 comments

I try added killall command on remote and this not worked and after some multiple tap's on this button - server crash.
For example:

script.default("killall -9 stremio");
script.default("/usr/bin/killall -9 stremio");
os.start("/usr/bin/killall -9 stremio");

On logs no info about this action

Version | 3.10.0.2467 (49)
OS | linux
Platform | Linux 5.13.0-13.1-liquorix-amd64 x86_64

GUI-apps and Keys worked fine. It's problem with only CLI-apps

This WORKED:

actions.play = function ()
		kb.stroke("space");
end

This WORKED:

actions.stremio = function ()
	os.start("/opt/stremio/stremio");
end

This NOT WORKED - Server crash after multiple tap's:

actions.close = function()
	script.default("/usr/bin/killall -9 stremio");
end

This NOT WORKED - Server crash after multiple tap's:

actions.close = function()
	os.start("/usr/bin/killall -9 stremio");
end

Solved, need added lib line on lua:
local script = libs.script;