I tried to write a windows service using python, reference from http://www.chrisumbel.com/article/windows_services_in_python.
In SvcDoRun(), when I tried to use subprocess.check_output(), I get a exception, 'WindowsError: [Error 6] The handle is invalid'.
Is there a way to overcome this issue.