I'd like to find out if anyone knows how to FTP one file every 20 minuets 24hrs a day.
Thank you,
Docfxit
FTP schedule every 20 min
Re: FTP schedule every 20 min
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
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
WinXP Pro SP3 or Win7 x86 | SS 2.54
Re: FTP schedule every 20 min
I use ncftp for that with a scheduler depending on the task.
Re: FTP schedule every 20 min
What scheduler do you use? Does it have command line commands. Can you give an example of a command line?Lazarus wrote:I use ncftp for that with a scheduler depending on the task.
Thanks,
Docfxit
Re: FTP schedule every 20 min
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:What scheduler do you use?
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:docfxit wrote:Does it have command line commands. Can you give an example of a command line?
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