Community discussions

MikroTik App
 
davidw
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 91
Joined: Fri Apr 27, 2007 11:11 pm

Multiple /tool fetch

Mon Jul 27, 2009 10:19 am

Hi There,

I wanted to fetch 4 files from an ftp server of mine.

I was hoping to be able to paste these commands into a terminal window. but it does not seem to work.

/tool fetch address=X.X.X.X src-path=/hotspot/logout.html dst-path=/hotspot/logout.html mode=ftp user=XXX password=XXX keep-result=yes port=21
/tool fetch address=X.X.X.X src-path=/hotspot/login.html dst-path=/hotspot/login.html mode=ftp user=XXX password=XXX keep-result=yes port=21
/tool fetch address=X.X.X.X src-path=/hotspot/status.html dst-path=/hotspot/status.html mode=ftp user=XXX password=XXX keep-result=yes port=21
/tool fetch address=X.X.X.X src-path=/hotspot/redirect.html dst-path=/hotspot/redirect.html mode=ftp user=XXX password=XXX keep-result=yes port=21


If I paste them in 1 at a time, they do work.

Any ideas ?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24556
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Multiple /tool fetch

Mon Jul 27, 2009 10:45 am

probably because you have to wait until the first transfer ends. you need some separator command between those.
No answer to your question? How to write posts
 
davidw
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 91
Joined: Fri Apr 27, 2007 11:11 pm

Re: Multiple /tool fetch

Mon Jul 27, 2009 11:16 am

What is a separator command ?

Do you mean any command ?

I tried delay 2

Who is online

Users browsing this forum: No registered users and 20 guests