Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > tar with ruby

Reply
Thread Tools

tar with ruby

 
 
Tomas Fischer
Guest
Posts: n/a
 
      02-27-2006
Hi,

I have started using ruby.
A current task is to get a tar.gz file from internet and extract it.
I find the zlib class und so I can extract the downloaded file to
a .tar one.

How can I extract this file?
I found old postings on groups.google which use
Archive::Tar::Minitar. Is this still the way to handle tar file with
ruby,
or are there classes in standard lib?

What is the ruby-way: Install the extra package or call external program
tar (my ruby program is suggested to run only on Linux plattforms)?

Thanks,
Tomas

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


 
Reply With Quote
 
 
 
 
Eric Hodel
Guest
Posts: n/a
 
      02-27-2006
On Feb 27, 2006, at 2:44 PM, Tomas Fischer wrote:

> Hi,
>
> I have started using ruby.
> A current task is to get a tar.gz file from internet and extract it.
> I find the zlib class und so I can extract the downloaded file to
> a .tar one.
>
> How can I extract this file?
> I found old postings on groups.google which use
> Archive::Tar::Minitar. Is this still the way to handle tar file with
> ruby,
> or are there classes in standard lib?
>
> What is the ruby-way: Install the extra package or call external
> program
> tar (my ruby program is suggested to run only on Linux plattforms)?


I tend to favor calling external programs when I know they'll be there.

--
Eric Hodel - http://www.velocityreviews.com/forums/(E-Mail Removed) - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com




 
Reply With Quote
 
 
 
 
Austin Ziegler
Guest
Posts: n/a
 
      02-28-2006
T24gMi8yNy8wNiwgRXJpYyBIb2RlbCA8ZHJicmFpbkBzZWdtZW 50Ny5uZXQ+IHdyb3RlOgo+IE9u
IEZlYiAyNywgMjAwNiwgYXQgMjo0NCBQTSwgVG9tYXMgRmlzY2 hlciB3cm90ZToKPiA+IEhvdyBj
YW4gSSBleHRyYWN0IHRoaXMgZmlsZT8KPiA+IEkgZm91bmQgb2 xkIHBvc3RpbmdzIG9uIGdyb3Vw
cy5nb29nbGUgd2hpY2ggdXNlCj4gPiBBcmNoaXZlOjpUYXI6Ok 1pbml0YXIuIElzIHRoaXMgc3Rp
bGwgdGhlIHdheSB0byBoYW5kbGUgdGFyIGZpbGUgd2l0aAo+ID 4gcnVieSwKPiA+IG9yIGFyZSB0
aGVyZSBjbGFzc2VzIGluIHN0YW5kYXJkIGxpYj8KPiA+Cj4gPi BXaGF0IGlzIHRoZSBydWJ5LXdh
eTogSW5zdGFsbCB0aGUgZXh0cmEgcGFja2FnZSBvciBjYWxsIG V4dGVybmFsCj4gPiBwcm9ncmFt
Cj4gPiB0YXIgKG15IHJ1YnkgcHJvZ3JhbSBpcyBzdWdnZXN0ZW QgdG8gcnVuIG9ubHkgb24gTGlu
dXggcGxhdHRmb3Jtcyk/Cj4KPiBJIHRlbmQgdG8gZmF2b3IgY2FsbGluZyBleHRlcm5hbC Bwcm9n
cmFtcyB3aGVuIEkga25vdyB0aGV5J2xsIGJlIHRoZXJlLgoKLi 4ud2hlcmVhcyBJIHRlbmQgdG8g
cHJlZmVyIGEgcHVyZSBSdWJ5IGFwcHJvYWNoLiBJIHBsYW4gb2 4gaW1wcm92aW5nCkFyY2hpdmU6
OlRhcjo6TWluaXRhciBpbiB0aGUgbmVhciBmdXR1cmUgYW55d2 F5IGFuZCBoYXZlIGJlZW4gZ2l2
ZW4Kc29tZSBwYXJ0aWFsIHN1cHBvcnQgZm9yIHN5bWJvbGljIG xpbmtzLgoKLWF1c3RpbgotLQpB
dXN0aW4gWmllZ2xlciAqIGhhbG9zdGF0dWVAZ21haWwuY29tCi AgICAgICAgICAgICAgICogQWx0
ZXJuYXRlOiBhdXN0aW5AaGFsb3N0YXR1ZS5jYQo=


 
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
Re: Pipelining tar create and tar extract the "Python" way... Ray Van Dolson Python 0 09-25-2009 03:48 PM
Pipelining tar create and tar extract the "Python" way... Ray Van Dolson Python 0 09-23-2009 10:52 PM
os.system('tar -c * | tar -C dst') ##Any other suggestions... list.repository@gmail.com Python 2 04-24-2007 10:29 PM
Version of TAR in tarfile module? TAR 1.14 or 1.15 port to Windows? Claudio Grondi Python 4 08-20-2005 08:01 PM
trouble with Archive::Tar : Can not read compressed format in tar-mode benoit Guyon Perl Misc 2 07-26-2005 01:53 PM



Advertisments