Page 1 of 1

Script Trouble

Posted: Wed Apr 25, 2018 11:30 pm
by rd228
Hi all

I am having trouble with task I am trying to run as a script

I am using this to resolve my DNS name which will then update the Remote IP on my GRE Tunnel.

/interface gre set "gre-tunnel1" remote-address=[:resolve "mydomain.com"

This line works from the terminal perfectly....

However if I paste it into a script and hit "run" nothing happens. Am I doing this wrong?
Screen Shot 2018-04-25 at 21.29.09.png

Re: Script Trouble  [SOLVED]

Posted: Wed Apr 25, 2018 11:51 pm
by sindy
I can see a missing right (closing) parenthesis after the
[:resolve mydomain.com]
part. A copy-paste error maybe?

Re: Script Trouble

Posted: Thu Apr 26, 2018 12:07 am
by rd228
Ah my bad! Apologies!

That fixed it...not paying attention.