Lua: how to check whether a process is running -
i start process lua , monitor whether process still running.
[edit] know starting can achieved os:execute, blocking. find way start process non-blocking , monitor whether still runs.
one of blunt ways using io.popen() , monitoring it's output or processes them self using other linux tool ps.
another way using lua posix bindings posix.signal , posix.unistd#fork()
Comments
Post a Comment