Page 1 of 1

Syntax Issue (Scheduling)

Posted: Thu Oct 23, 2014 7:59 am
by dzoni
Hello!

I'm trying to setup my RB to turn off wireless signal at say 23:00 and turn it back on at 6:00. I've created 2 tasks and one to run in the morning and one to run at night, but I can't get them to complete the task. I've checked the time, NTP, everything I could think of. Then I figured it was probably the script it self. I've created a script and whenever I execute it, I get this error: syntax error: Expected end of line at row 4 column 25. I've googled it, looked at the wiki, I just can't figure out what's wrong with the code. I just need the script, or even better the schedule to execute these series of commands.
:put [/log info Starting...];
:put [/interface wireless set wlan1 tx-power=22];
:put [/interface wireless enable wlan];
:put [/log info Wireless Enabled];

Re: Syntax Issue (Scheduling)

Posted: Sat Oct 25, 2014 12:24 pm
by ovdeathiam
Try
/log info "Starting...";
/interface wireless set wlan1 tx-power=22;
/interface wireless enable wlan1;
/log info "Wireless Enabled";

Re: Syntax Issue (Scheduling)

Posted: Sat Oct 25, 2014 8:30 pm
by dzoni
Thanks, it worked.