The domain blogcanadian.com is for sale. Click here for more details. Blog Canadian - How to FTP Linux web logs to Windows server?

Blog Canadian

How to FTP Linux web logs to Windows server?

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? I could use a hand on the syntax for a script that will do this. The FTP settings are ready I really just need the syntax on the batch script. I assume it's like xcopy something something right?

Public Comments

  1. A simple batch file is all you need. FTP was intended to be used in scripts. http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx?mfr=true
  2. 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/~sgtatham/putty/download.html download psftp to some location on your hard drive that is in your windows PATH and use that instead. Good Luck, Annorax64
Powered by Yahoo! Answers