Obviously, this shows that I am a total novice when it comes to the scripting. I would like to add that when I pasted the code below into the window so that you could read it, it would break itself up incorrectly.
But, I tested if I paste the code in and then manually removed all of the extra "breaks", and then copied it back to notepad, that new block of code was fine and did not have the invisible breaks in it anymore.
In notepad, it looks the same either way... I will paste both lines so that you see the difference. Remember, in notepad, both of these line look IDENTICAL, but when I paste them here you see the difference.
1) The line which has never been pasted here before.
/system script add name=ebackup source={/system backu
p save name=([/system identity get name] . "-" . [:pick [/system clock get date] 7 11] .
[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6]); /tool e-mai
l send to="routerbackup@hypewifi.com" subject=([/system identity get name] . " Backup " .
[/system clock get date]) file=([/system identity get name] . "-" . [:pick [/system cloc
k get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date
] 4 6] . ".backup"); :delay 10; /file rem [/file find name=([/system identity get name] .
"-" . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:p
ick [/system clock get date] 4 6] . ".backup")]}
2) The line which was pasted in this window (extra linefeeds removed while in this window) and then pasted back into notepad. Then pasted again from notpad back to here successfully.
/system script add name=ebackup source={/system backup save name=([/system identity get name] . "-" . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6]); /tool e-mail send to="routerbackup@hypewifi.com" subject=([/system identity get name] . " Backup " . [/system clock get date]) file=([/system identity get name] . "-" . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . ".backup"); :delay 10; /file rem [/file find name=([/system identity get name] . "-" . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . ".backup")]}
Is notepad hiding line feeds? I know where these line feeds came from. They were added somehow when I was testing peices of this script in the router and when I got it the way I liked it, I would copy it from the router to notepad on my computer so that I could log into other routers and paste it.
So I guess my final problem is two fold.
1) I guess I should never copy multiline output from the router into a notepad file to save for later use since hidden linefeeds are copied over with the visible text.
2) Why does the script editor freak out and lock me out of the router when I try to combine the multiple lines by pressing backspace to delete one of these invisible characters.