The UNIX and Linux Forums  

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
Directory inside directory problem namishtiwari Shell Programming and Scripting 6 01-27-2008 01:07 AM
unable to create any directory that uses numbers as the directory name fed.linuxgossip UNIX for Advanced & Expert Users 16 01-13-2008 05:54 PM
determining actual directory of a symlinked directory chiru_h Shell Programming and Scripting 3 09-24-2007 04:40 PM
determine owner directory permissions from within the directory Sniper Pixie Shell Programming and Scripting 4 03-07-2006 02:06 PM
moving files from a unix directory to a windows directory gleads UNIX for Dummies Questions & Answers 2 08-29-2002 05:42 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-15-2003
Registered User
 

Join Date: Jul 2002
Posts: 12
ftp a directory

How does one ftp an entire directory from one Solaris 5.9 machine to another with out moving one file at a time?
Reply With Quote
Forum Sponsor
  #2  
Old 12-15-2003
oombera's Avatar
Registered User
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
Perderabo put together a great script for recursive ftp:

Recursive FTP -- here at last.
Reply With Quote
  #3  
Old 12-17-2003
Registered User
 

Join Date: Nov 2003
Location: Minnesota
Posts: 388
Actually, if all you want to do is move all the files from one directory, you don't need the recursive part. Just use "mget *" or "mput *" depending on which direction you're trying to go. Although if you don't issue the "prompt" command first it will ask you to confirm each transfer, so you may want to do that before the mget.

So if you have a directory tree use the above advice and try the recursive script. But if it is just all the files in one single directory you want moved mget or mput is your answer.
Reply With Quote
  #4  
Old 12-17-2003
Registered User
 

Join Date: Jul 2002
Posts: 12
I am trying to run mget as advised, and I keep getting the error "disk1 not a plain file". have prompt off, and am in binary mode.
Reply With Quote
  #5  
Old 12-17-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
That means disk1 is a directory. If you need to move all the files within /disk1/* then you need to change directory to disk1 and then use the mget or mput. It will not get any directories.

Otherwise, use the program Perderabo was kind enough to write.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0