Solved

FTP script to transfer data from Windows server to Linux server

Posted on 2014-11-24
3
272 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
As a financial services provider, your business is impacted by two of the strictest federal regulations on record: the Sarbanes-Oxley Act and the Gramm-Leach-Bliley Act. Correctly implementing faxing into your organization to provide secure, real-ti…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

728 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