How to Run a Task in Background in Windows

I usually use nohup to run any task in background in linux

nohup python sss.py &

What is the similar command used to run a background task in windows?

1 Answer

Sort of? In Windows, there's start which launches another command outside of your current CLI session. The down side is that the process isn't attached in any way to the window you launched it from so you don't get output sharing like you would in Linux.

An alternative to achieve this may be to use something like Cygwin which gives you (most of) bash on Windows. (Update 2020: Windows 10 has Windows Subsystem for Linux now. This allows you to run a good chunk of Linux on a Windows host.)

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest