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.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊