Solved

File transfer problems

Posted on 2004-09-12
3
302 Views
Last Modified: 2013-12-01
Hi,

I'm trying to schedule an FTP transfer of a database from my website back to my server.  But the FTP program I use (IPSWITCH) can only schedule down to a one minute increment.  Has anybody come across an FTP program which provides a smaller resultion than one minute?  I need 10 seconds.

Thanks a lot for the help.  I'm really in a pickle right now.

Sincerely,
RA
0
Comment
Question by:ba272
  • 2
3 Comments
 
LVL 16

Expert Comment

by:The--Captain
ID: 12041766
I think the authors in their inifinite wisdom decided that an interval of less than 60s was silly (just like the author of cron) - you seem to claim otherwise - can you be more specific as to why a 10s interval is necessary?

If your FTP client is accessible from the command line, most scripts have access to commands like "sleep" which can provide granularity down to a single second...  Once again, I ask for clarification.

Cheers,
-Jon
0
 
LVL 2

Expert Comment

by:DiCeR
ID: 12042089
If I recall correctly - even the NT implementatin of the CRON command does not support "pr. second" intervals.

To do this I'd script the transfer with FTP-scripting and put it in a Batch-file. The FTP-client that comes with Windows can do this easily. This batch-file can be launched using various different script-languages that support less-than-minutes delays. I can reccommend using Perl or Kixtart for such scripting purposes.

The batchfile would be something like myftp.bat, or myftp.cmd if you're using Win2K/XP
----
@echo off
FTP -s:ftpscript.ftp
----

the ftpscript.ftp would be a plaintext file containing all the commands you'd type to make the transfer. (This is from the top of my head tho, you will need to adapt/errorcheck this. Please beware that the password IS in plaintext here)
----
open ftpserver.host.etc
user username
password
bin
cd /directory/where/to/put/file
put /local/path/to/file
bye
----

And the actual Scriptfile to do the running of the FTP-transfer would be along the lines of...
----
call "myftp.bat"
sleep(10)
loop
----

Obviously these last commands will be different depending on what script-language you choose. The Script would call the batch-file, the batch-file would call the FTP-application and get its instructions from the ftpscript and then close when transfer is done, FTP would close and the batch-file would close and the script would wait and then repeat the proccess. Run the script hidden in the background and you get your continous updates.

An file-transfer even 10 seconds does sound a little... odd tho. I'd like to  hear what you need to synchronize that frequently?
0
 
LVL 2

Accepted Solution

by:
DiCeR earned 500 total points
ID: 12042713
Ack - it just struck me: If you already have a web-server, why not make the file you need to transfer available through the webserver?

A looping webrequest with for instance WGET can be implemented quite a bit simpler than FTP.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

746 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

13 Experts available now in Live!

Get 1:1 Help Now