1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tranlating Cron-Job

Discussion in 'Tomato Firmware' started by Rupert, Mar 14, 2010.

  1. Rupert

    Rupert Addicted to LI Member


    I need some help, please:
    I've found these interesting cron-job for the wrt-dd
    "This is a cron job that will run every hour and turn off the radio if no clients are connected as requested"
    0 * * * * root [ -z `wl assoclist` ] && wl radio off

    Could someone translate it to tomato busybox-cron.
    Is there an option to run it under custom sheduler?
    I have no skills in cron/scripting...sorry.
  2. ntest7

    ntest7 Network Guru Member

    That command looks as if it will work as-is with cron.
    For the scheduler, you can run it as-is or maybe change it to
    test -z `wl assoclist` && wl radio off
    (basically the same thing; '[ ... ]' is shorthand for the test command)
  3. Rupert

    Rupert Addicted to LI Member

    Hi ntest7

    It works...as you said.

    But i need some more help:
    After the sheduled "radio off" the power-led is still blinking.
  4. HennieM

    HennieM Network Guru Member

    You just turned off the wireless (radio), not the whole router - the router still has power and the wired connections, if any, still works.

Share This Page