strange problem importing rsc script
Posted: Wed Feb 17, 2016 3:10 pm
Hi all,
I have been designing a simple program that generates a script file to be imported in to a fully reset (i.e. no defaults) Mikrotik router.
However when I try to import the rsc file generated by the program I get this error:
I don't know why, when I copy the text of the RSC file and paste it into the terminal window it's fine, but if I try and import it I get the error.
Here are the first few lines of text in the rsc:
It throws the error on the first Char!
Here is the output of an import verbose=yes command:
What are those characters before :log?
Any help gratefully appreciated.
tslytsly
I have been designing a simple program that generates a script file to be imported in to a fully reset (i.e. no defaults) Mikrotik router.
However when I try to import the rsc file generated by the program I get this error:
Code: Select all
expected command name (line 1 column 1)
Here are the first few lines of text in the rsc:
Code: Select all
:log info "**** Starting auto-setup script ****"
:log info "Configuring log to file..."
/system logging
action add target=disk name=ScriptLog disk-file-name=ScriptLog disk-file-count=1
add action=ScriptLog topics=script
:log info "Creating bridge interface..."
/interface bridge
add arp=proxy-arp name=bridge-LAN
Here is the output of an import verbose=yes command:
Code: Select all
#line 1
▒▒▒:log info "**** Starting auto-setup script ****"
expected command name (line 1 column 1)
Any help gratefully appreciated.
tslytsly