J
johnny
How do I pipe the output, generated from os.system(some_command), to
the logging file?
the logging file?
How do I pipe the output, generated from os.system(some_command), to
the logging file?
Use the help file, pick the "index" tab, and type "subprocess"; thenI am doing the os.system(encode_cmd) within a thread. So you are
saying, have each thread create a subprocess module. Did you mean,
"Popen" (os.popen)?
Concept is there... You'll have to have your thread /read/ theLike os.popen(encode_cmd) , not os.system(encode_cmd)?
I am doing the os.system(encode_cmd) within a thread. So you are
saying, have each thread create a subprocess module. Did you mean,
"Popen" (os.popen)?
Like os.popen(encode_cmd) , not os.system(encode_cmd)?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.