Page 1 of 1

FTP schedule every 20 min

Posted: 18 Oct 2011, 23:03
by docfxit
I'd like to find out if anyone knows how to FTP one file every 20 minuets 24hrs a day.

Thank you,

Docfxit

Re: FTP schedule every 20 min

Posted: 19 Oct 2011, 03:00
by therube
You want to upload to a server every 20?
Or you want to download from a server every 20?

Same file each time or different?

(I'm only guessing ...)

For download, WGET.
For upload, FTP or cURL.

Schedule with Task Scheduler or AT or schtasks.
Or an alternative scheduler.

http://www.gnu.org/software/wget/
FTP is included in Windows (type FTP)
http://curl.haxx.se/

Task Scheduler & AT & schtasks are all parts of Windows.
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
(might not have a 20 minute mark? may have to go with 15 or 30, at least from the dropdown box?)
http://www.microsoft.com/resources/docu ... us/at.mspx
(might not be able to do something like run /every:20min ?)
http://www.microsoft.com/resources/docu ... tasks.mspx
(shows an example setting a schedule for 20 minutes)
http://stackoverflow.com/questions/1015 ... -scheduler

Re: FTP schedule every 20 min

Posted: 25 Jul 2012, 23:11
by Lazarus
I use ncftp for that with a scheduler depending on the task.

Re: FTP schedule every 20 min

Posted: 28 Jul 2012, 23:38
by docfxit
Lazarus wrote:I use ncftp for that with a scheduler depending on the task.
What scheduler do you use? Does it have command line commands. Can you give an example of a command line?

Thanks,

Docfxit

Re: FTP schedule every 20 min

Posted: 31 Jul 2012, 18:29
by Lazarus
docfxit wrote:What scheduler do you use?
On Windows: or, when i need a task every xx minutes/seconds, i wrote a little program which just waits xx seconds and use that in a batch.
docfxit wrote:Does it have command line commands. Can you give an example of a command line?
Sure, all explained on their website. I use this, which mirrors my files in a directory to another computer including subdirectories and delete them on sourcecomputer after successful(!) transfer. "winwait.exe 120" waits for 2min, for example:

Code: Select all

:begin
cd \web\sourcedir
ncftpput.exe -u xxxxxx -p xxxxxx -d dbg.log -A -t 5 -R -r 20 -z -DD -y -B 1024000 domain.tld /targetdir sourcedir
\web\winwait.exe 120
goto begin

Re: FTP schedule every 20 min

Posted: 01 Aug 2012, 23:00
by docfxit
Thank you,

Docfxit