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
  #1 (permalink)  
Old 07-02-2009
Jocker Jocker is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 7
tar command loop during execution

I've some problem concerning tar command.
Sometime tar command submitted to create a tar file, in execution loop over the same group of files.

Can anyone help me?

Tanks
  #2 (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
That is most probably because you have links somewhere...
  #3 (permalink)  
Old 07-02-2009
Jocker Jocker is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 7
Hi vbe, I've not link in input structures.

Have you any other suggestions or idea?

Tanks

Last edited by vbe; 07-02-2009 at 05:15 AM.. Reason: spelling
  #4 (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
The best would be you show us the passed command on what OS...
  #5 (permalink)  
Old 07-02-2009
Jocker Jocker is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 7
OK, you are right! I'm sorry.
I use HP-Unix as OS and the command submitted is tar -cvf directory_name.tar directory_name.
  #6 (permalink)  
Old 07-02-2009
jayan_jay jayan_jay is offline
Registered User
  
 

Join Date: Jul 2008
Location: Chennai
Posts: 40
Try this...
tar -cvf directory_name.tar directory_name/*
  #7 (permalink)  
Old 07-02-2009
Jocker Jocker is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 7
Hi jayan_jay, I already tryed to use this sintax, but the results is unchanged. Now I'm trying to use short directory name, because I think files path may be to be too long.

Another aspect of problem is that the syntax you suggest works if command is submitted by hand but doesn't work if submitted by command file.

Thanks
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 03:50 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