The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix Arithmatic operation issue , datatype issue thambi Shell Programming and Scripting 23 02-19-2008 07:19 AM
ftp issue ravi raj kumar Shell Programming and Scripting 5 02-06-2008 08:24 AM
awk issue on AIX ranj@chn Shell Programming and Scripting 1 07-04-2007 07:22 AM
Issue with rsh sriram.s AIX 5 07-03-2007 12:37 PM
FTP issue u263066 Shell Programming and Scripting 1 07-28-2006 07:18 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-26-2008
anchal_khare anchal_khare is offline
Registered User
  
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 325
tar issue

frnds,

I compressed some files on the basic of $date var.

$date contains todays date in some specific format..
also my files are in different directories...

now, I m doing.

HTML Code:
tar -cvf archive.tar /root/abc/*$date* /root/wxv/123/*$date* /var/*$date*
this creates archive.tar for me..
but the problem is when I extract this...

tar -xvf archive.tar
it gives me nothing...
also, its sure that the archive is valid.. ( I can see the contents with tar -tvf )...

can any1 suggest whats wrong here??

thanks..
  #2 (permalink)  
Old 03-26-2008
krishmaths krishmaths is offline
Registered User
  
 

Join Date: Sep 2006
Location: Mysore, India
Posts: 191
Are you looking in the correct directory?

If you see absolute paths in tvf option, try vieweing the files giving complete path.
  #3 (permalink)  
Old 03-26-2008
anchal_khare anchal_khare is offline
Registered User
  
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 325
hi krishmaths,
I can see the full path in tvf option...but those are pointing to the orignal location..
not the files which the archive.tar contain...
coz when I moved the orignal files to some otherplace,,thn I m not able to view the contents of it..
  #4 (permalink)  
Old 03-26-2008
krishmaths krishmaths is offline
Registered User
  
 

Join Date: Sep 2006
Location: Mysore, India
Posts: 191
Can you post the output of tar -tvf, at least a portion of it? Let us see if we can infer something from that.
  #5 (permalink)  
Old 03-26-2008
anchal_khare anchal_khare is offline
Registered User
  
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 325
its like listing the files...

$ tar -tvf archive.tar

rw-r--r-- 12015/12015 288 Mar 24 16:02 2008 /opt//daily/input/.stats

rw-r--r-- 12015/12015 288 Mar 24 16:02 2008 /abc.stats
Closed Thread

Bookmarks

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 12:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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