Solved

File transfer problems

Posted on 2004-09-12
3
304 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

786 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