This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Stop a running script
#4
(09.11.2020, 07:25)admin Wrote: Open scripting editor and get your script id (editor?id=123). Use this script to stop a running script with a certain id.
Code:
id = 123
os.execute('pkill -f "scripting-event.lua ' .. id .. ' "')
Note that this will work only for event scripts. For resident scripts use script.disable(script_name)

for an event script, dose this kill all running instances for the event script?
And is it possible to check if there are running instances before using the above?
Reply


Messages In This Thread
Stop a running script - by Trond Hoyem - 03.11.2020, 12:15
RE: Stop a running script - by admin - 09.11.2020, 07:25
RE: Stop a running script - by benanderson_475 - 09.11.2020, 09:13
RE: Stop a running script - by buuuudzik - 09.11.2020, 09:07
RE: Stop a running script - by admin - 09.11.2020, 09:13
RE: Stop a running script - by admin - 09.11.2020, 09:30

Forum Jump: