?
Solved

what TAR is doing??

Posted on 2003-03-01
5
Medium Priority
?
313 Views
Last Modified: 2013-12-27
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.
0
Comment
Question by:vimal_rai
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 5

Expert Comment

by:Nisus091197
ID: 8048428
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
 
LVL 4

Expert Comment

by:besky
ID: 8048982
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
 

Expert Comment

by:roy911
ID: 8066026
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
 
LVL 18

Expert Comment

by:liddler
ID: 10475046
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
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10516731
PAQed - no points refunded (of 50)

modulo
Community Support Moderator
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question