Dear all,
I've a problem using popen2 when using large files.
When I use small input files everything works well but when I feed large
inputfile to the pipe nothing happens. Is there a maximum bufsize for
using the pipe. The code I use is written down here below. Do I need to
specify a waittime between line 4 and 5 ?
o,i =popen2('comman d '))
fh=open(os.path .join(self.dirn ame, self.filename), 'r')
i.write(fh.read ())
i.close()
self.StringData =o.read()
o.close()
I've a problem using popen2 when using large files.
When I use small input files everything works well but when I feed large
inputfile to the pipe nothing happens. Is there a maximum bufsize for
using the pipe. The code I use is written down here below. Do I need to
specify a waittime between line 4 and 5 ?
o,i =popen2('comman d '))
fh=open(os.path .join(self.dirn ame, self.filename), 'r')
i.write(fh.read ())
i.close()
self.StringData =o.read()
o.close()
Comment