Community discussions

MikroTik App
User avatar
Topic Author
Posts: 49
Joined: Wed Nov 05, 2008 1:15 am
Location: Woodland, WA

Import file from remote server

Fri Feb 13, 2009 10:43 pm

looking for a way to load a file on a remote server onto many mt from each mt command line, rather than having to open the file menu on each one, and drag the file onto it. anyone know the cmd line would look like for that? or ideas on a better way to do this?
"If it ain't broke, you're not tryin"
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Import file from remote server

Fri Feb 13, 2009 11:40 pm

Actually, it isn't a script.
/tool fetch mode=http src-path=index.html dst-path=index.txt
This imports the file index.html from server and changes the filename to index.txt
You may change mode=ftp if that is the protocol.

Just a warning: If you use this in a script, and the file does not exist, or the server does not respond, the script will abort.

Who is online

Users browsing this forum: No registered users and 31 guests