SUMMARY: How can I watch the progress of a file being read?

From: Edward Finch (efinch@eos.hitc.com)
Date: Tue Nov 26 1996 - 10:24:26 CST


Thank-you to the responders:

john benjamins <johnb@Soliton.COM>
spreb@fozzie.cha.tva.gov (Rick Berube)
"Mark L Roberts" <mlroberts@dow.com>
Wis Macomson <wis@sequent.com>
Jochen Bern <bern@TI.Uni-Trier.DE>
adzinic@mail.wat.hookup.net
Rich Kulawiec <rsk@itw.com>
Jim Harmon <jim@telecnnct.com>
Jason Keltz <cs911089@ariel.cs.yorku.ca>

My original question was:

We periodically have large files (> 1GB) that are tar'd to tape. Obviously,
this takes a while to complete. I would like to be able to watch the progress
of the file being read. I would like (1) to execute some-command which then starts
the tar and monitors it, and (2) some way to detect the progress if the user has
already started the tar.

Several people suggested the -v option to tar, which I was already aware of. The problem is that
the -v will tell me which file is being copied, but not the progress of it.

The "winning" entry (IMHO) was to use "truss -p <pid>".

lsof, monitor and ufsdump were also suggested, but I haven't had time to explore them. The most
creative (read: my favorite) response was to get GNU tar, and modify it to do what I want. :)

Thanks again!
Ed



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:16 CDT