Solved

FTP script to transfer data from Windows server to Linux server

Posted on 2014-11-24
3
270 Views
Last Modified: 2014-11-24
Guys

I have a Windows 2003 (32 bit) server which receives 3rd party application files into one of its folders.

The files that go into this folder need to be FTP'd out of the Windows directory and into a directory on a Linux server every 20-30 minutes.

Can someone point me in the right direction in terms of the script that needs to be written and how to set this up.

Question: do I run a Windows Scheduled Task to run the script every 20-30 mins?

I have been ftp'ing this data manually via the command prompt on the Windows box but this has been to another Windows box. This requirement is for the data to leave the Windows box and land in a directory on a Linux server.
Thanks
0
Comment
Question by:CTCRM
3 Comments
 
LVL 19

Accepted Solution

by:
Miguel Angel Perez Muñoz earned 500 total points
ID: 40462236
You can do a wget every 30 minutes on Linux box:
 wget --ftp-user ftpuser --ftp-password ftpassword ftp://path/...
http://serverfault.com/questions/25199/using-wget-to-recursively-download-whole-ftp-directories

To configure every 30 minutes, create a script and a cron job: http://www.thesitewizard.com/general/set-cron-job.shtml
0
 

Expert Comment

by:Lelio Michele Lattari
ID: 40462490
I suggest to use Cygwin ;-) http://cygwin.org/
0
 
LVL 2

Author Closing Comment

by:CTCRM
ID: 40462565
Thanks
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question