[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

popen and bzip2

David Weldon

2/24/2007 12:09:00 AM

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

--
Posted via http://www.ruby-....

1 Answer

David Weldon

2/24/2007 1:00:00 AM

0

> 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.

--
Posted via http://www.ruby-....