A
A
Alexey Green2014-11-01 20:07:22
linux
Alexey Green, 2014-11-01 20:07:22

Cron does not work on Openwrt. How to setup?

There is this script:

*/10 * * * * root curl "http://myddns.ru/ddns/?login=мойлогин&pass=мойпароль&domen=domen.myddns.ru"

The script is supposed to update my IP in DDNS records, but after reboot it doesn't work. If you just execute it, the update happens. In /var/log/ did not find logs on Crontab.
I ask you to help
ps - for security purposes, I removed the login-password.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
t_q_l, 2014-11-02
@lexforceterror

  1. Make sure /etc/crontab has a newline character at the end
  2. Enable (/etc/init.d/cron enable) and restart the cron daemon (/etc/init.d/cron restart)
  3. Try adding /dev/null 2>&1 at the end of the script

D
Dmitry, 2014-11-01
@zmeyjr

By analogy with Ubuntu: Specify the full path to curl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question