Community discussions

MikroTik App
User avatar
Topic Author
Posts: 34
Joined: Wed Apr 05, 2006 12:03 am
Location: Prague, Czech rep.

One command on more lines with plink

Thu Sep 26, 2013 10:49 pm

I'd like to use script, where will be some command separated on more physical lines. In mikrotik shell it works without any problem by using backslash "\" character on end of line.
When I use this command in mikrotik shell, it works ok.
ip dns set \
But when I create script file on linux, called for example "test.rsc" and then I try to start it remotely by "plink user@ip -m test.rsc", then I receve two "syntax error" messages from mikrotik. When I don't use joined commands (one command = one physical line), it works without any problem.

Who is online

Users browsing this forum: Google [Bot] and 24 guests