Score:0

Python subprocess doesn't work

jp flag
import subprocess

return_code = subprocess.call("echo Hello Word", shell=True)

After running this, no output is given. Similar, when using subprocess.run('arg',shell=True), the run completes but nothing is performed.

I'm trying to use subprocess.run to run STAR-CCM+ but I suspect there's a problem with my working environment.

David avatar
cn flag
I suspect there's a problem with my working environment. and I guess we are expected to know what that is? Where are the details?
Byte Commander avatar
nf flag
Can you please review the [documentation for `subprocess.run`](https://docs.python.org/3/library/subprocess.html#subprocess.run) again? It does not capture any output by default.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.