File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 81

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: 865
    
    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: 10911
    
  12

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
 
 
subject: Shell script to FTP the files itno multiple server
 
Similar Threads
script runs from command line, but from webmin it creates errors
Transfer of files thro. Linux 7.x
Need script to copy file on FTP server from Windows
ftp in crontab is not working
Find Num of files in FTP Server directory