Python Forum
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
execute sequence
#1
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!
Reply
#2
What have you tried?
Reply
#3
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()
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020