My understanding is script output cannot be viewed directly. Instead the output needs to be sent to the log.
I created a simple script, test.rsc:
:set myVar "test";
:log info "$myVar";
I uploaded the script with scp. I added the script to the script "repository":
/system script add name=test.rsc policy=read,write
Running /system script print shows no errors and lists the script.
When I run the script there are no error messages and there is nothing in the log.
I can manually type :log info "This is a test" and the text appears in the log.
1. What am I doing incorrectly?
2. Do scripts have to use Windows (CR/LF) line endings?
3. When I type /log print I see two entries because I have disk logging configured. How do I show only memory or disk entries?