Re: Use tar to append?



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!

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: TOC with no entries
    ... Microsoft Word MVP ... The advantage of SET fields is that you can store the actual error message displayed and, for example, display it using a REF field. ... I did think about bookmarking the TOC and REFing it, ... Try "No table of figures entries ...
    (microsoft.public.word.numbering)
  • Re: "file cannot be opened because there are problems with content
    ... I do have a TOC with two levels, so that might be an issue. ... but that does not appear to be an XML ... The error message is a problem is with content - Location: Part: ... Where can I find the Recover option in Word ...
    (microsoft.public.word.application.errors)
  • Re: TOC with no entries
    ... This is an unexpected but not entirely surprising result for a linked TOC. ... Word suppresses the normal Hyperlink style for hyperlinked TOCs ... Microsoft Word MVP ... I was trying it in Word 2003, where the error message is exactly as I ...
    (microsoft.public.word.numbering)
  • Combining Multiple MS Word Files - Error Message Upon Save As
    ... I open the first file and add the second file to it by inserting, ... error message that prevents me from saving these two files as one. ... ..pdf with interactive TOC, ... the TOC with the information from the second file? ...
    (microsoft.public.word.docmanagement)