Solved

FTP script to transfer data from Windows server to Linux server

Posted on 2014-11-24
3
263 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
Comment Utility
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
Comment Utility
I suggest to use Cygwin ;-) http://cygwin.org/
0
 
LVL 2

Author Closing Comment

by:CTCRM
Comment Utility
Thanks
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
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…
The viewer will learn how to count occurrences of each item in an array.

762 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

6 Experts available now in Live!

Get 1:1 Help Now