Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers > Answers to Frequently Asked Questions
Search Forums:



Answers to Frequently Asked Questions FAQ for UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-20-2004
Perderabo's Avatar
Unix Daemon (Adminstrator Emeritus)
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,679
Thanks: 26
Thanked 237 Times in 147 Posts
Automate FTP / Scripting FTP Transfers

One of our most frequent questions is how to automate ftp transfers. There are several approaches. Since I'm writing this post, we will start with my favorite technique.

In Automated FTP task I present a simple example of my ksh co-process technique. And note that later in this thread I explain how it works. And in For Loops Within Ftp Comands I show how to use the co-process technique in conjunction with a loop.

In Automated FTP we see an example of another technique called a "here document".

And in Telnet and file Copy/Delete Problem we see and example of the .netrc technique.

There are dozens of more threads, but they are all using one of the techniques above (or a combination of techniques 2 and 3). You can find them with our search function.

For a perl solution, see Perl scirpt for automatic file transfer.

connecting to Unix from windows - help has this link which may help if you need to have an ftp script on a box running Windows.

And then, there is this.

sftp is different program that uses a different protocol and has different requirements. sftp scripting recommends this site. Also see automate sftp using unix script.

Last edited by Perderabo; 05-21-2005 at 02:17 PM..
The Following User Says Thank You to Perderabo For This Useful Post:
nr_shan (10-13-2010)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Automate FTP borncrazy Shell Programming and Scripting 11 02-20-2008 11:10 PM
History of old FTP transfers Nakul Mukerjee UNIX for Dummies Questions & Answers 4 05-02-2007 06:39 AM
Automate FTP CamTu UNIX for Advanced & Expert Users 4 02-25-2005 09:08 AM
text files, ASCII files, binary files and ftp transfers Perderabo Answers to Frequently Asked Questions 0 04-08-2004 04:25 PM
automate an ftp job flowrats UNIX for Dummies Questions & Answers 11 07-24-2002 08:47 AM



All times are GMT -4. The time now is 10:57 PM.