Tranlating Cron-Job

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

  1. Rupert

    Rupert Addicted to LI Member

    Hello.

    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.
    THX!

    But i need some more help:
    After the sheduled "radio off" the power-led is still blinking.
    Why?
     
  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.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice