The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Remote command execution uunniixx Shell Programming and Scripting 4 04-02-2009 11:26 PM
slow command execution? BandGap Shell Programming and Scripting 2 02-04-2009 10:32 AM
command execution time hashin_p Shell Programming and Scripting 5 07-06-2008 07:28 PM
command execution ?? zedex UNIX for Advanced & Expert Users 1 11-06-2007 05:26 PM
how to stop execution in for loop useless79 High Level Programming 1 09-06-2007 10:54 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #8 (permalink)  
Old 07-02-2009
jayan_jay jayan_jay is offline
Registered User
  
 

Join Date: Jul 2008
Location: Chennai
Posts: 40
Try to change the lengthy directory name and use it in a script.. If no use, then revert to proceed further..
  #9 (permalink)  
Old 07-02-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,546
Can you try with cpio to see if same problem occurs?
Code:
find <directory> -print | cpio -ocv ><dirname>.cpio
To see the content...
cpio -cit< <dirname>.cpio
Bits Awarded / Charged to vbe for this Post
Date User Comment Amount
07-30-2009 Jocker N/A 0
  #10 (permalink)  
Old 07-02-2009
Jocker Jocker is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 7
cpio work correctly, but I cannot substitute tar with cpio because other scripts are based on a tar file.

---------- Post updated at 06:36 AM ---------- Previous update was at 06:33 AM ----------

javan_jay the length of file path doesn't affect the behaviour of the command.
  #11 (permalink)  
Old 07-02-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,546
If cpio passes and not tar, then Im quite sure there is hidden links...
so try again using tar's -l option (HPUX11.11 man:
Quote:
l Tell tar to complain if it cannot resolve all of the links
to the files being saved. If l is not specified, no error
messages are printed.
  #12 (permalink)  
Old 07-06-2009
Jocker Jocker is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 7
Hi vbe, I submitted tar command with -l options. No error and no warning were issued by tar.
Bye

---------- Post updated at 10:19 AM ---------- Previous update was at 10:17 AM ----------

... and I'm sure that there's no link in the input structure (I've verified with ll -R command too)
  #13 (permalink)  
Old 07-07-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,546
Can you show us a example?
What OS version and what architecture?
what type of FS?
If its VXFS have you tried to defragment the directories yet?
  #14 (permalink)  
Old 07-07-2009
Jocker Jocker is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 7
Show an example may be very hard, because I'm try to tar a very big structure (992 files for over 1.5 GB). All what I can do is to send you a text file containing the output issued by tar, if you tell me how I can.
I'm using HP-Unix B.11.00 on a RISC machine, FS is a VXFS type and I didn't try to defragment the directories before.
In any case I can add another information. I tried to tar files beeing directly into the directory that contains them and tar returned a tar file as expected.
Bye
Sponsored Links
Reply

Bookmarks

Tags
looping, tar command

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0