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:|
|Thread Tools||Search this Thread|
|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|