Problem with cron job in Tomato

Discussion in 'Tomato Firmware' started by Kiwi8, Jan 19, 2008.

  1. Kiwi8

    Kiwi8 LI Guru Member

    Hi all!

    I have a weird problem with cron job in Tomato.

    Here is my script:
    cru a doraemon 15 9 * * 0,6 ether-wake 00:19:66:15:1B:4A

    cat << "EOF" > /root/.profile
    alias a='alias'
    alias c='cat /proc/cpuinfo'
    alias dir='ls -laF'

    But when I rebooted the router, the cron job list becomes:
    15 9 etc home mnt var etc home mnt var 0,6 ether-w ake 00:19:66:15:1B:4A #doraemon#
    45 10 * * * ntpsync --cron #ntpsync#

    There seems to be a problem but I can't figure out where.

    Thanks in advance.
  2. Kiwi8

    Kiwi8 LI Guru Member

    As usual I have jumped the gun again by posting without researching myself.

    Let me answer my own question.

    I'm supposed to use:
    cru a doraemon "15 9 * * 0,6 ether-wake 00:19:66:15:1B:4A"

    with the double quotation marks.

    I'm sorry for the inconvenience caused to u all. :redface:
  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