popen and bzip2

D

David Weldon

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.

Thanks!

Dave
 
D

David Weldon

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)

Sorry I think this was my mistake. If I run it in Radrails I get this
but on the cmd line I don't have the problem so this may be an IDE
artifact.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,234
Messages
2,571,180
Members
47,813
Latest member
RustyGary3

Latest Threads

Top