1863040 Members
1090 Online
110446 Solutions
New Discussion

Re: tar options--- help

 
SOLVED
Go to solution
Shrikant Lavhate
Esteemed Contributor

tar options--- help

Hi all,

I am using
#tar -cv -T total_files
tar: cannot stat -T. Not dumped.

on HPUX 11.00. Where total_files is a file which holds all list of files to be tarred. That is my tar command is not reading that file as a argument. Problem remains same even if I provide complete path for total_files File.

Fix needed.
Will it remain a personal, if I broadcast it here!
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: tar options--- help

Shalom,

man tar

There is no dash T -T option.

tar is looking for a file named -T

This is why HP put man files on systems. It's not linux. If you need this option, you may wish to install gnu tar.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: tar options--- help

"-T" is not a valid option for the HP-UX version of tar, but if you really need this, have a look at

http://hpux.asknet.de/hppd/hpux/Gnu/tar-1.19/

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Shahul
Esteemed Contributor

Re: tar options--- help

I simply do this,

cd /xxxx (cd to the directory you want to tar)

tar -cvf filename.tar *

Now all the files and directories in that directory will be tared to filename.tar file. For more info do "man tar"

Good luck
Shahul
Steven Schweda
Honored Contributor

Re: tar options--- help

I'm curious. I try very hard to ignore the
whole topic of ITRC forum points, but I see
that in this thread you got two helpful
responses explaining exactly what your
problem was, and pretty much exactly what to
do about it, plus one response which was
generally useless. You awarded four points
to each of these. Why?

Are you trying to annoy people by rewarding
good and bad answers equally, or don't you
recognize a good answer when you see one, or
what? I'm mystified. (Of course, if I get
four points for this, that might explain a
lot.)
Dennis Handly
Acclaimed Contributor
Solution

Re: tar options--- help

>Where total_files is a file which holds all list of files to be tarred.

If you don't want to use gnu tar, you can use pax(1):
$ pax -w -v -f /dev/rmt/0m < total_files
Shrikant Lavhate
Esteemed Contributor

Re: tar options--- help

>You awarded four points to each of these. Why?

Cause man pages dont show -T option - I already checked that.
Also gnu tar is good replace which I have already knows through ITRC only, in some threads.
So, these replies dosnt add much to my knowledge still I want to pay off for valuable time these ppl spend for replying n explaining the stuff.
Will it remain a personal, if I broadcast it here!
Shrikant Lavhate
Esteemed Contributor

Re: tar options--- help

Thanks Dennis.
pax is doing good at my requirement.
Will it remain a personal, if I broadcast it here!