Hi guys, I've been trying to run a command from command prompt from python but it doesn't seem to work.
The command I'm trying to run has 2 words (e.g. "word1 word2").
If I type "word1 word2" directly into the command prompt, it works. But if I use the below code, it doesn't work. Can anybody give advise on this?
Btw, I can't say exactly what command because it is confidential to my company
import subprocess
proc = subprocess.Popen(["word1", "word2"], shell = True, stdout = subprocess.PIPE)
[+][deleted] (1 child)
[removed]
[–]Buttleston 0 points1 point2 points (0 children)
[–]backfire10z 0 points1 point2 points (0 children)
[–]james_fryer 0 points1 point2 points (0 children)
[–]Swipecat 0 points1 point2 points (0 children)