Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Shell script to FTP the files itno multiple server  RSS feed

 
jaya kemmannu
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 992
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12441
42
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never done it as a shell script, but it is pretty simple in Perl.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!