Python Forum

Full Version: execute sequence
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Python World,

I need to utilize following sequence in python 2.6

Run external program=>Read input from txt.file=>Write output to csv.file.

Please help me with this task, thanks!
What have you tried?
I tried subprocess, but its not running

mycmd = ("externalprogramm", "/home/inforeq.txt")
process = sp.Popen(mycmd, stdout=sp.PIPE, stderr=sp.PIPE)
out, err = process.communicate()