Solved

FTP script to transfer data from Windows server to Linux server

Posted on 2014-11-24
3
267 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

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
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, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now