On Wednesday, March 18, 2015 at 11:36:39 PM UTC+5:30, Rustom Mody wrote: > On Wednesday, March 18, 2015 at 8:12:12 PM UTC+5:30, Robert Clove wrote: > > ./my_eth_script.pl eth0 M >> a.txt > > > > How can i run this command with subprocess.popen > > Something like this I guess? > > >>> proc = Popen("cat", shell=True, stdout=open(inname, "w"), > >>> stdin=open(outname,"r"))
ie proc = Popen(["perl", "./my_eth_script.pl", "eth0", "M"], shell=True, stdout=open("a.txt", "w")) -- https://mail.python.org/mailman/listinfo/python-list