what TAR is doing??

I've fired TAR command and forget to give option -v in command.
TAR is taking backup of 50 files.
Now TAR iw sorking and and NOW I want to know what TAR is working i.e. TAR is taking backup of which file right now.
vimal_raiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nisus091197Commented:
Hi,

There are a few options.

I would use 'lsof'. It is use for listing open files.  You can get if from http://www.sunfreeware.com

You could also use the 'truss' command.  Not the easiest one to use but quite informative.

Finally, if you do a 'tar tvf' of the output file, it will possibly tell you how far it has gotten.

Regards, Nisus
http://www.omnimodo.com
0
beskyCommented:
You can trace any running process with
truss -p PID (of tar process)

there are more options for tracing systemcalls etc

OR check the PID of the tar process
use the command pfiles PID to see what files the tar process has opened. It will be one for /dev/rmt/0 ( if you are running to tape) and another file that is read from ( plus stdin,stderror, libs etc )



HTH
0
roy911Commented:
Hi,

As besky suggested, you could use truss -p <PID> -topen, which means you would only be tracing open syscalls. Grep'ing for a specific filename/directory name out of the output will should you what the tar command is acting on at that time.

RR
0
liddlerCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ  No refund

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer
0
moduloCommented:
PAQed - no points refunded (of 50)

modulo
Community Support Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.