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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like