Running python script in Windows background
NickName:Yarden Ask DateTime:2020-01-09T19:44:52

Running python script in Windows background

I have a long python script that runs on a Windows host for a long while (by design), And the application that runs that script (via windows CMD) needs to receive a response quickly or else it times out.

is there a way to run the script, and have a quick "ok" output for the other application to not time out, while the script still runs in the background?

i have tried "start py script.py" or "start /b py script.py" but it does not give any response.

Copyright Notice:Content Author:「Yarden」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/59663269/running-python-script-in-windows-background

More about “Running python script in Windows background” related questions

Running python script in Windows background

I have a long python script that runs on a Windows host for a long while (by design), And the application that runs that script (via windows CMD) needs to receive a response quickly or else it time...

Show Detail

Running python script in background in windows 10

I am running a python in Windows 10 Command prompt. After the system is kept idle the script stop working. The system also had sleep mode turned off. I need to press "enter" key to make script work...

Show Detail

Elegant Way To Share Variable Between Windows Form and Python Script Running In Background Process

I am trying to figure out an elegant way to share a variable between a windows form app and a python script running in the background. The variable would be used solely to update a progress bar in...

Show Detail

Background Running Python Script keeps stopping

I made a .pyw python script that I want to have running in the background of my computer. Right now I have it set to launch by putting it in the Startup folder of my Windows 7 computer, which should

Show Detail

Running a python background script (Windows 7) to keep files updated

I have a list of websites I need to extract certain values from in order to keep a local .txt file up-to-date. Since the websites need to be checked at different time intervals I would prefer not t...

Show Detail

High windows defender CPU usage while running python script

I am working on a python script that pulls data from an Access database via ODBC, and pulls it into a sqllite database managed by django. The script takes a fair while to run, and so I was investi...

Show Detail

Running a Python script in the background from a PHP file

I need to run a Python script in the background after being called from a PHP file. The PHP file should continue to run independently of the Python script (i.e. it shouldn't hang waiting for the P...

Show Detail

python script see traceback when running as background

I have a python script running like this on my server: python script.py & The script works fine, but constantly I'm adding new things to the script and re-running it, somedays it runs for days

Show Detail

How to run python script in the background (Windows) with different parameters?

I'm using a python script named vpngate.py. This script takes as a parameter a country so when i launch my program i do : python vpngate.py korea (for instance). It allows me to change my IP address,

Show Detail

Check if a Python script is already running in Windows

What is the best/easiest why to check if a specific Python script already running in Windows? I have a script that goes over all files in a folder and copies them to another folder (sort to Movie ...

Show Detail