Unix/Linux Go Back    

Answers to Frequently Asked Questions Answers to Beginners BSD, Linux, and UNIX shell scripting Frequently Asked Questions — This forum contains answers to frequently asked questions about how to use awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages. (Only Moderators and Administrators can add a thread to this forum. If you would like to make an addition to this forum, post your suggestion in the FAQ Submission Queue sub-forum.)

Automate FTP / Scripting FTP Transfers

Answers to Frequently Asked Questions

Thread Tools Search this Thread Display Modes
Old Unix and Linux 05-20-2004   -   Original Discussion by Perderabo
Perderabo's Unix or Linux Image
Perderabo Perderabo is offline Forum Advisor  
Unix Daemon (Administrator Emeritus)
Join Date: Aug 2001
Last Activity: 26 February 2016, 12:31 PM EST
Location: Ashburn, Virginia
Posts: 9,930
Thanks: 63
Thanked 473 Times in 272 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. Linux

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
automatic SCP transfers issues Dird Security 1 07-01-2010 07:37 AM
Slow LAN FTP Transfers with FreeBSD... CyberCat IP Networking 4 02-01-2010 04:31 PM
Terminal scripting to automate login to cisco devices. Help Please ! drdread OS X (Apple) 2 01-19-2009 03:10 AM
ssh - transfers with gateway hopping Solarius UNIX for Advanced & Expert Users 2 09-29-2008 07:14 AM
History of old FTP transfers Nakul Mukerjee UNIX for Dummies Questions & Answers 4 05-02-2007 06:39 AM

All times are GMT -4. The time now is 01:20 AM.