Extract .tar.bz2 with ruby


#1

Hi,

I need to extract the content of a tar.bz2 file with ruby.
I use ruby under in WinXP.
How do I do that?

Thanks
Peter


#2

Hello,

Use the Win32API and the libbz2.dll

http://www.rubycentral.com/book/win32.html


Pau Garcia i Quiles
http://www.elpauer.org
(Due to the amount of work, I usually need 10 days to answer)

Quoting removed_email_address@domain.invalid:


#3

On 08/06/07, removed_email_address@domain.invalid removed_email_address@domain.invalid wrote:

Hi,

I need to extract the content of a tar.bz2 file with ruby.
I use ruby under in WinXP.
How do I do that?

There is also a library for tar manipulation (minitar?). Combined with
a bz2 decompression library (as suggested in other mail) it should do
the trick.

Thanks

Michal