Whenever you're running subprocess.call and you see this error, say to yourself: "Have I passed the command line as one parameter in a list; or have I passed it as a series of parameters?"
I usually prefer:command = "find /tmp -name '*.jpg'"subprocess.call(command.split())
Thanks.. That's a good idea
Wow, thank you!
Thank you for your message!
Post a Comment
4 comments:
I usually prefer:
command = "find /tmp -name '*.jpg'"
subprocess.call(command.split())
Thanks.. That's a good idea
Wow, thank you!
Thank you for your message!
Post a Comment