Community discussions

MUM Europe 2020
User avatar
Topic Author
Posts: 32
Joined: Wed Apr 05, 2006 12:03 am
Location: Prague, Czech rep.

Multi lines command

Fri Sep 27, 2013 8:13 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.
Forum Guru
Forum Guru
Posts: 1186
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway

Re: Multi lines command

Sat Sep 28, 2013 12:43 am

Remember to have the correct encoding. You will find the same problem if you write a script (a long line of letters) in notepad, copy it and paste.

Who is online

Users browsing this forum: gogotha and 93 guests