Just learning via luaRT, and I have a dead simple window. After the window is shown, I call sys.cmd() to launch another process. Let's say 'notepad.exe', per examples I've seen here, but that doesn't really matter (I've tried a bunch of stuff).
A basic call to sys.cmd() will NOT launch the specified cmd. It never happens. The host windows is there, but the cmd never executes. Even so, sys.cmd() returns true! I can confirm the specified cmd doesn't launch by watching the proc monitor (in case it was launching and dying quickly or something).
Now, if I add the extra arguments to sys.cmd(), specifically standalone=true, THEN the cmd does launch. Ok .. good. BUT, if I close the host window then the launched process also quits, which seems like the opposite of what standalone=true is supposed to do.
So, to reiterate:
result = sys.cmd('start "" notepad.exe')
... nothing happens. but result == true.
result = sys.cmd('start "" notepad.exe', true, true)
... notepad instance is launched, but if I close the host window, then the notepad instance is killed.
Sooo... what's up? What am I doing wrong, or what is wrong with sys.cmd?
Thanks in advance.