wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes Shell script to FTP the files itno multiple server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Shell script to FTP the files itno multiple server" Watch "Shell script to FTP the files itno multiple server" New topic
Author

Shell script to FTP the files itno multiple server

jaya kemmannu
Ranch Hand

Joined: Sep 23, 2011
Posts: 83

Hi,

Anyone can help me to write Linux script that will FTP the files every hour into different servers ?

Regards,
Jaya
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 867
    
    5
A possibility is to use the interactive ftp client program from a shell script.
As this client program was meant to be used interactively, and not from a script, the error handling from a shell script is cumbersome but feasible.

fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11161
    
  16

I've never done it as a shell script, but it is pretty simple in Perl.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Shell script to FTP the files itno multiple server
 
Similar Threads
ftp in crontab is not working
Need script to copy file on FTP server from Windows
script runs from command line, but from webmin it creates errors
Transfer of files thro. Linux 7.x
Find Num of files in FTP Server directory