We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to call os.execute to disable the service, and the service name has a space, so I can't execute it correctly.
func Test_lua(t *testing.T) { L := lua.NewState() defer L.Close() if err := L.DoString(` os.execute("net stop zoolon-Daemon") os.execute("net stop \"Zoolon Daemon Service\"") os.execute("sc config \\"Zoolon Daemon Service\\" start= disabled") `); err != nil { t.Error() panic(err) } }
The text was updated successfully, but these errors were encountered:
GopherLua uses os.StartProcess to create child process. You seems running into this issue( golang/go#15566). https://github.com/otm/gluash might be helpful for you.
os.StartProcess
Sorry, something went wrong.
No branches or pull requests
I want to call os.execute to disable the service, and the service name has a space, so I can't execute it correctly.
The text was updated successfully, but these errors were encountered: