Re: Use tar to append?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cameron Simpson wrote:
On 09Mar2007 10:17, Mike McCarty <Mike.McCarty@xxxxxxxxxxxxx> wrote:

[snip]

| >Regarding progress reporting, "tar cvf" reports nicely but interleaves any
| >error message with the TOC, which is annoying and also hides the errors. I
| I don't want to watch the xterm it's running in. I want a wall.

Easily done. Read each line from the TOC, and hand the interesting few
to wall.

Ok.


| >have a suggestion for this, which is a little tacky but may work quite
| >nicely:
| >
| >  >tarfile
| | This line looks like a syntax error to me. What is it
| supposed to accomplish?

It is not a syntax error. It truncates the tarfile, ensuring it exists before
the tail starts. It is otherwise possible for the tail to commence before the
tar creates the file. Unlikely, but possible.

Ok. Thanks.

[snip]

| Umm, two points. (1) Having one process writing and another reading
| the same archive results in a "chase", eating lots of resources
| while the reader tries to catch up with the writer.

Yes. Like I said, it's a little tacky.
Measured the load? How nasty is it?

Haven't done that. Dunno how that would be done, actually,
except by measuring elapsed times to completion. The system
is completely used when tar is running. It would be an
interesting measurement, though.

| (2) I don't
| want a detailed report, I want a progress report so I can know
| approx. how much has been done.

Which is why I suggested you do something other than "cat", like "grep".
You post process the tvf output as you see fit.

Ok. Makes sense. I'll need to learn a little more shell syntax
to do that.

[snip]

The other way, which is a little harder, is to run a "tar cvf" and post
process its output as it goes. Have a look at "entar", a script of mine which
does exactly that:

  http://www.cskk.ezoshosting.com/cs/css/bin/entar

Thanks, I'll have a look.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux