Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: cksum contents of a tarball

by dcd (Scribe)
on Sep 15, 2006 at 21:58 UTC ( [id://573263]=note: print w/replies, xml ) Need Help??


in reply to cksum contents of a tarball

Not really a comment on the code, but the ideas it triggered. I know perl has a way to create tar files (even find2perl can create tar files), and Archive::Tar can read as well as write files.
Did you need to create temporary files because cksum couldn't take input from stdin?
It would be nice if we could treat tar files as file system - but that would require special modules loaded into linux, although maybe Perl could virtualize it as a file system.

Replies are listed 'Best First'.
Re^2: cksum contents of a tarball
by diotalevi (Canon) on Sep 15, 2006 at 23:17 UTC

    Archive::Tar requires that you load the entire tarball into memory. My tarballs are around two gigs.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://573263]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-25 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found