Cron command not working

Hi,

I want to create a schedule to disconnect lan from the wan/internet in order to turn it off at 11pm each night

I have:

# disconnect lan to wan bridge
0 23 * * * uci set network.cfg061ec7.ports='0t'
# reload network 
1 23 * * * service network reload

when I put these commands directly into ssh, they work fine
On cron, the first command is not working though as when I check the status with
uci get network.cfg061ec7.ports, I can see it has not changed
I can see the network reload is working at the connection drops for a moment.

Any ideas?
Dave

That worked a treat !
Thank you,
Dave

1 Like

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