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 Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
"sed" to check file size & echo " " to destination file jockey007 Shell Programming and Scripting 7 04-28-2009 02:08 AM
how can i replace "(", "\" "+" in a file mail2sant Shell Programming and Scripting 3 04-22-2008 11:10 PM
Development Releases: Linux Mint 4.0 Beta "Fluxbox", 4.0 Alpha "Debian" iBot UNIX and Linux RSS News 0 01-04-2008 03:00 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-20-2007 01:52 AM
No utpmx entry: you must exec "login" from lowest level "shell" peterpan UNIX for Dummies Questions & Answers 0 01-18-2006 04:15 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 06-14-2005
wev wev is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 6
using Tar -cvf file.tar "Need Help"

Ok,

I use the command tar -cvf ~kw4691/output/test.tar ~kw4691/input on one UNIX server, lets call it sneezy. I FTP the tared file over to another server, lets call it bashful. Use the tar -xvf test.tar command and get the error

~kw4691/input "could not create the directory"
/hom/dev/sy40 Premission denied
tar: ~kw4691/input/XXXXX.pdf - cannot create

I don't want to have to create the same directory on a different box, I just want to be able to un-tar in any dir after I FTP.

Please HELP

Thanks,

Kevin
  #2 (permalink)  
Old 06-14-2005
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
don't use absolute pathnames when creating an archive - use relative paths.
  #3 (permalink)  
Old 06-14-2005
wev wev is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 6
I have no say where the original files to be tarred are located, and where the location of the tarred file once tarred. These are set locations.
  #4 (permalink)  
Old 06-14-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Try this:

cd ~kw4691; tar -cvf output/test.tar input

This should work.
  #5 (permalink)  
Old 06-14-2005
wev wev is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 6
Yea, that does not work I was already at ~kw4691. I just want to be able to tar the files on one server , FTP to another server, and untar without having to match the path where the files were originally tarred.

i.e sneezy server /home/user/input/xxx.pdf's and on bashful server I don't want to have to create that same path "/home/user/input/". I want to be able to untar in /home or /home/user or wherever.

Thanks,

Kevin
  #6 (permalink)  
Old 06-14-2005
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
tar -cvf ~kw4691/output/test.tar -C /home/user/input .
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 01:53 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