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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Auto copy for files from folder to folder upon instant writing Bashar UNIX for Advanced & Expert Users 2 1 Week Ago 11:44 AM
Parse the .txt file for folder name and FTP to the corrsponding folder. MeganP Shell Programming and Scripting 3 07-03-2007 10:54 AM
Take a folder name and find it in another folder (Complicated) hkhan12 Shell Programming and Scripting 5 09-06-2006 09:25 AM
downloading through ftp moxxx68 UNIX for Advanced & Expert Users 6 12-05-2004 01:34 AM
Downloading eric_hing UNIX for Dummies Questions & Answers 1 09-05-2003 12:12 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-2008
Registered User
 

Join Date: Mar 2008
Posts: 8
downloading a folder

I know how to download a file from a ftp server through shell script.
But when there is a folder inside the directory you are in, I could not
download them.

How would you write it?

I can think of this.
login to ftp and output the directory tree into a file.
Log out the session
read the output and let the variable to store the folder path
log in to ftp again and cd to that directory
and download files inside this folder.

I think this is cumbersome and not really smart, is there any better ways to do this?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-24-2008
s. murat's Avatar
Registered User
 

Join Date: May 2008
Posts: 7
maybe, the command that you use have an option like "-r" or "-R" in the meaning of recursive
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:19 PM.


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

Content Relevant URLs by vBSEO 3.2.0