Meaningless Drivel is fun!*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 85

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: 11444
    
  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