python - subprocess.call requiring all parameters to be separated by commas -


i used able subprocess.call(["command","-option value -option value"]) , work there change command work things in quotes, have change subprocess call command this:

subprocess.call(["command","-option","value","-option","value"]) 

is there can work other way again in python?

the os.system("command -option value -option value") works same did before.

you'll need specify shell=true subprocess.call interpret string.

see note in subprocess.popen constructor documentation (the subprocess.call method takes same arguments subprocess.popen constructor).


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -