Optware/Cron problem

Optware/Cron problem

Postby mrsoje » 19 Feb 2017, 21:54

Installed Optware
Installed Cron
Made Crontab for DDNS @ freedns.afraid.org

crontab | +
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/sbin:/opt/bin
MAILTO=""
HOME=/
# ---------- ---------- Default is Empty ---------- ---------- #
* * * * * root wget --spider "http://freedns.afraid.org/dynamic/update.php?UxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxQ==" >/dev/null 2>&1

From telnet this cmd wget --spider "http://freedns.afraid.org/dynamic/update.php?UxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxQ==" >/dev/null 2>&1
update my IP
Cron doesn't
Found this in /tmp/.log
.log | +
Feb 19 17:30:01 192 cron.info /opt/sbin/cron[2500]: (root) CMD (wget --spider "http://freedns.afraid.org/dynamic/update.php?UxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxQ==" >/dev/null 2>&1^M)
Feb 19 17:31:01 192 cron.info /opt/sbin/cron[2824]: (root) CMD (wget --spider "http://freedns.afraid.org/dynamic/update.php?UxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxQ==" >/dev/null 2>&1^M)
Feb 19 17:32:01 192 cron.info /opt/sbin/cron[3152]: (root) CMD (wget --spider "http://freedns.afraid.org/dynamic/update.php?UxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxQ==" >/dev/null 2>&1^M)
Feb 19 17:33:01 192 cron.info /opt/sbin/cron[3473]: (root) CMD (wget --spider "http://freedns.afraid.org/dynamic/update.php?UxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxQ==" >/dev/null 2>&1^M)


Looks like its not going out to freedns.afraid.org
Any suggestions will be highly appreciated ?
Player Egreat R200S
Firmware amps_r5_nogui with 3Dgui skin
mrsoje
 
Posts: 121
Joined: 19 Jul 2013, 19:47
Location: Србија

Re: Optware/Cron problem

Postby FarVoice » 20 Feb 2017, 06:22

you must to see wget's log, like
wget 'http://bla...' -O /dev/null >> /tmp/wget.log 2>&1
ASUS O!Play R1 (amp_r12_vrtn), xTreamer Pro (amp_r12_vrt), xTreamer Prodigy (iNeXT 2.14 r2), IconBIT HDR12L (amp_r12_vrt), 3Q F425HW (xds42gl_7725_r3), MyGica A11 (mygica_m3_20121222)
User avatar
FarVoice
Администратор
 
Posts: 8574
Joined: 03 Sep 2010, 01:27
Location: Russia, Moscow

Re: Optware/Cron problem

Postby FarVoice » 20 Feb 2017, 09:21

^M

Remove windows EOL from crontab :)
ASUS O!Play R1 (amp_r12_vrtn), xTreamer Pro (amp_r12_vrt), xTreamer Prodigy (iNeXT 2.14 r2), IconBIT HDR12L (amp_r12_vrt), 3Q F425HW (xds42gl_7725_r3), MyGica A11 (mygica_m3_20121222)
User avatar
FarVoice
Администратор
 
Posts: 8574
Joined: 03 Sep 2010, 01:27
Location: Russia, Moscow

Re: Optware/Cron problem

Postby mrsoje » 20 Feb 2017, 10:00

tried to make crontab with crontab-e but don't know how to save it :oops:
Player Egreat R200S
Firmware amps_r5_nogui with 3Dgui skin
mrsoje
 
Posts: 121
Joined: 19 Jul 2013, 19:47
Location: Србија

Re: Optware/Cron problem

Postby FarVoice » 20 Feb 2017, 10:10

just edit it with vi or mc editor and remove ^M from the end of lines
ASUS O!Play R1 (amp_r12_vrtn), xTreamer Pro (amp_r12_vrt), xTreamer Prodigy (iNeXT 2.14 r2), IconBIT HDR12L (amp_r12_vrt), 3Q F425HW (xds42gl_7725_r3), MyGica A11 (mygica_m3_20121222)
User avatar
FarVoice
Администратор
 
Posts: 8574
Joined: 03 Sep 2010, 01:27
Location: Russia, Moscow

Re: Optware/Cron problem

Postby mrsoje » 21 Feb 2017, 01:22

Thanks again .
Player Egreat R200S
Firmware amps_r5_nogui with 3Dgui skin
mrsoje
 
Posts: 121
Joined: 19 Jul 2013, 19:47
Location: Србија


Return to Other

Who is online

Users browsing this forum: No registered users and 1 guest