pipe = IO.popen(‘bzip2 -cd /home/dave/article.xml.bz2’, ‘r’)
always gives me:
bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: Broken pipe
Input file = /home/dave/article.xml.bz2, output file = (stdout)
when the program completes. I have tried pipe.close, pipe.close_read. I
can read lines from the pipe which is all i want to do, but I don’t get
why this error is coming up.