Question Locked

Script for auto grab file using FTP server

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi all,

I need to program a script to auto copy all files from a server,and load it to another server by using FTP server.

Is there any programming script that I can used to solve my problem?

Hope that you can help me regarding this matters.

Thanks :)

4 replies

by deity_chooch

Which OS are you using to perform these functions? I have previously created a batch script on a Windows machine to accomplish this, but it was some time ago and I can't remember the specifics. You can use FTP to accomplish it and it shouldn't be too hard, just use the resource provided by absolutely.

In Linux, I've used `scp` to automatically copy the files, but this requires some playing with the SSH keys. `wget` will work for plain HTML files, but will not retrieve any kind of scripting in the files. I think I have tried using command-line FTP for this as well (`ftp`), and had some issues getting the password accepted. This is the reason I amended my approach to use `scp`, but I can't remember the exact problem I had.

by yana6283

Hi deity,

Thanks for your reply.Anyway,im using windows 2003 server.Do you mind to teach me on the batch script. I still new with this matters.Anyway may i know, where shall i run the script.Does it run in DOS platform or other platform?Thanks a lot :)

This discussion is closed to new replies.