Hi all
I am trying to write a script that will swop ADSL accounts at a certain time
My script is as follows:-
/interface pppoe-client set [find name="wan-int-disabled"] name="wan-int-disabled-temp";
:delay 1;
/interface pppoe-client disable [find name="wan-int"];
:delay 1;
/interface pppoe-client set [find name="wan-int"] name="wan-int-disabled";
:delay 1;
/interface pppoe-client set [find name="wan-int-disabled-temp"] name="wan-int";
:delay 1;
/interface pppoe-client enable [find name="wan-int"];
:delay 1;
:log info "Swopped Int ADSL Account";
It works perfectly when pasting it into the terminal but will not execute when using system scheduler.
When I try /system script run SwopADSL, I get the error “syntax error (line 2 column 6)”
Im very new at this, please help…/?