w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Executing shell command from python

You can call a subprocess as if you were in the shell by using Popen() with the argument shell=True:

subprocess.Popen("nohup ./op.o > myout.txt &",

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.