Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > popen and bzip2

Reply
Thread Tools

popen and bzip2

 
 
David Weldon
Guest
Posts: n/a
 
      02-24-2007
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-forum.com/.

 
Reply With Quote
 
 
 
 
David Weldon
Guest
Posts: n/a
 
      02-24-2007
> 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-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BZip2 decompression and parsing XML phasma Python 1 06-06-2008 01:10 PM
BZip2 Compression with Apache Ant's BZip2 tools.....problem TSchultz55 Java 0 07-26-2005 03:21 PM
(Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2 Bill Davy Python 12 04-22-2005 12:19 PM
Windows support for tar and bzip2 Trans Ruby 6 04-19-2005 01:48 PM
BZip2-Files & Java Christian Decker Java 9 02-20-2005 05:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57