|
Ive been trying to figure out a script that can run on a windows 2003 server that will ftp web logs from a linux box back to the windows box on a daily basis. I can probably set the script in a schedule in the windows box but how do I write the script that will do the ftp work?
How to FTP Linux web logs to Windows server?
A simple batch file is all you need. FTP was intended to be used in scripts.
http://www.microsoft.com/resources/docum...
How to FTP Linux web logs to Windows server?
You will also need to enable FTP on your Linux server if it is a recent installation, because most Linux distributions have abandoned FTP for ssh file transfers using scp or sftp. FTP is inherently insecure since username and password are broadcast "in the clear" (meaning they aren't encrypted and anyone can intercept them).
You can get a sftp client for Windows call psftp here:
http://www.chiark.greenend.org.uk/~sgtat...
download psftp to some location on your hard drive that is in your windows PATH and use that instead.
Good Luck,
Annorax64
|