Scheduled Tasks - difficulty with crontab

It seem doesn't work on wrx36
Scheduled Tasks:
06 * * * * wifi up
23 * * * * wifi down

Anyone knows the reason ?

0 6 * * * wifi up radio0
0 23 * * * wifi down radio0

It doesn't work,you can try it.

the 06 & 23 are to represent the hour?
you also need to list the radio you want up/down e.g radio0 or radio1
change to:

0 6 * * * /sbin/wifi up radio0
0 23 * * * /sbin/wifi down radio0

see below

* * * * * command to execute
- - - - -
| | | | |
| | | | ----- Day of week (0 - 6) (Sunday =0)
| | | ------- Month (1 - 12)
| | --------- Day (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)

It not working, wifi state not change.

see amended post above

You need to provide absolute path of "wifi" binary. Like the path to "ip" binary in my example below:

## Refresh ARP table every 1 hour
15 */1 * * * /sbin/ip neigh flush dev br-lan
1 Like

like this ?
12 15 * * * /sbin/wifi down
37 10 * * * /sbin/wifi up

27 10 * * * /sbin/wifi down
39 20 * * * /sbin/wifi up
It is working,thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.