The UNIX and Linux Forums  


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
untar & unzip brendan76 Linux 1 01-16-2008 03:50 AM
untar prakash96453 UNIX for Advanced & Expert Users 2 10-19-2007 02:59 AM
untar to a specified file melanie_pfefer UNIX for Dummies Questions & Answers 3 11-27-2006 02:32 PM
Untar to different location pradeep_desh UNIX for Advanced & Expert Users 1 05-26-2006 12:05 PM
how to untar *.dpk files gauri UNIX for Dummies Questions & Answers 3 03-06-2006 04:12 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-05-2006
rahul26 rahul26 is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 15
Arrow Urgent....untar!!!

HI UNIX GURUS...
I am facing the a similar problem which malaymaru has posted earlier raegarding untaring a file in some other specified directory.But the solution by UNIX DAEMON "Perderabo" seems little difficult to understand.(USING #pax -r -s '=^/opt/abc=/tmp=' < tarfile)

So plz explain it.........i know this question has been posted earlier.But the number of replies is very less and little difficult to understand.So plz help.

The exact problem statement as follows:--

Suppose a directory is there in /abc/def/source_directory.
Now i make a tar of this directory as source_directory.tar and am successfully able to
ftp it to another server in the path ghi/jkl/source_directory.tar
Now how do i untar the source_directory.tar in the path ghi/jkl only.Now when i try to
untar it from my script using rexec command.the it is being untared to the HOME DIRECTORY
which i believe is happening due to conflict of path when untar is happening....
sample code i m using in my script to untar at the destination server once i m successfully able to ftp the filename.tar.gz file:
rexec azx.corp.asd.com gunzip $2/"$filename".tar.gz
rexec qwe.corp.fgt.com tar -xvf $2/"$filename".tar
plz post the exact solution...

Thanx,
rhaul26

Last edited by rahul26; 06-05-2006 at 09:41 AM..
 

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 08:14 AM.


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