0

I'm writing a Python 3 program in Windows and I would like to be able to continue running the program in the background (not in the taskbar) to gather information.

I was able to create it as a service, but I need admin privileges to run and it stops immediately!

1 Answer 1

1

It sounds to me like what you want is to make your program a Windows service. There's a bunch of good information in this other question: Is it possible to run a Python script as a service in Windows? If possible, how?

Sign up to request clarification or add additional context in comments.

10 Comments

Thanks for the reply! I tried the code in the link in my program and I got printed instructions that I Don't understand: I put the instructions I got in my question. You can probably tell that I don't really know what i'm doing!
Also. Keep in mind that i'm going to eventually compile my code into an executable.
@Luke: I'm guessing your script is LIP.py, correct? and you ran it from the command line like: python LIP.py? If so, the usage output is telling you that you need to pass in some options to start your script as a service, try: python LIP.py --install
Yes. But I actually run it from IDLE, and after that, it should be an executable.
@LukeDinkler I'm fairly certain that the command line arg's will be the same when you run it as an exe, so you'll just start it: LIP --install.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.