Community discussions

MikroTik App
 
User avatar
dzoni
just joined
Topic Author
Posts: 7
Joined: Thu Oct 23, 2014 7:51 am
Contact:

Syntax Issue (Scheduling)

Thu Oct 23, 2014 7:59 am

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];
 
ovdeathiam
just joined
Posts: 21
Joined: Wed Jul 16, 2014 11:15 am

Re: Syntax Issue (Scheduling)

Sat Oct 25, 2014 12:24 pm

Try
/log info "Starting...";
/interface wireless set wlan1 tx-power=22;
/interface wireless enable wlan1;
/log info "Wireless Enabled";
 
User avatar
dzoni
just joined
Topic Author
Posts: 7
Joined: Thu Oct 23, 2014 7:51 am
Contact:

Re: Syntax Issue (Scheduling)

Sat Oct 25, 2014 8:30 pm

Thanks, it worked.

Who is online

Users browsing this forum: No registered users and 19 guests