Hi,
I want to be able to save the result to a global variable in order to post back the result of the import process…
example
:global result [import test.rsc]
or
import test.rsc > result.txt
then I could use $result or the result.txt to post me a possible error message on the script…
is that possible?
No, I do not believe it is possible to get the error message from a script or import.
Best thing you can do is try to copy-paste the file’s contents into the terminal yourself.
If you wanna read the file on the router, you can do:
:put [/file get [/file find name=test.rsc] contents]
Only information on the import command I can find is this: wiki.mikrotik.com/wiki/Manual:Configuration_Management#Importing_Configuration