detecting the size of a tarball
Sergey 'DoubleF' Zaharchenko
doublef at tele-kom.ru
Wed Nov 5 04:44:44 PST 2003
On Tue, 04 Nov 2003 16:10:08 -0700 David Bear <David.Bear at asu.edu> probably wrote:
> I have a 100 mg zip drive that I'm writing to as a raw device -- no
> file system -- just 'tar cvf /dev/afd0 stuff'. I am curious if there
> is a way to find out how big the tarball is on this kind of thing.
> I'm guessing maybe some kind of seek to EOF but not sure how it might
> be accomplished. any idea's?
What about "tar cvf - stuff|dd of=/dev/afd0"? dd will tell you how much
has been copied.
--
DoubleF
"My doctor told me to stop having intimate dinners for four. Unless
there are three other people."
-- Orson Welles
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031105/4646d1ba/attachment.bin
More information about the freebsd-questions
mailing list