FTP schedule every 20 min

This is a place for users to discuss Altap Salamander. Please feel free to ask, answer questions, and express your opinion. Please do not post problems, bug reports or feature requests here.
docfxit
Posts: 76
Joined: 02 May 2006, 23:51

FTP schedule every 20 min

Post 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
therube
Posts: 674
Joined: 14 Dec 2006, 06:22

Re: FTP schedule every 20 min

Post 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
WinXP Pro SP3 or Win7 x86 | SS 2.54
Lazarus
Posts: 4
Joined: 25 Jul 2012, 22:59

Re: FTP schedule every 20 min

Post by Lazarus »

I use ncftp for that with a scheduler depending on the task.
docfxit
Posts: 76
Joined: 02 May 2006, 23:51

Re: FTP schedule every 20 min

Post 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
Lazarus
Posts: 4
Joined: 25 Jul 2012, 22:59

Re: FTP schedule every 20 min

Post 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
docfxit
Posts: 76
Joined: 02 May 2006, 23:51

Re: FTP schedule every 20 min

Post by docfxit »

Thank you,

Docfxit
Post Reply