Question regarding cron jobs for auto IP update.
I have successfully set up a wan-start to update my unotelly IP using a script from somewhere in these fourms. What is the way to set up a cron job for it? I would like to have it check every 3 hours.
Is it:
cat << EOF > /jffs/scripts/services-start
#!/bin/sh
/usr/sbin/cru a UnotellyIP "* /3 * * * /jffs/scripts/wan-start"
EOF
or can I just do a:
cat << EOF > /jffs/scripts/services-start
#!/bin/sh
/usr/sbin/cru a UnotellyIP "* /3 * * * root wget -qO - http://www.unotelly.com/unodns/auto_auth/hash_update/updateip.php?user_hash=your_token"
EOF
Please advise
Kryspy
I have successfully set up a wan-start to update my unotelly IP using a script from somewhere in these fourms. What is the way to set up a cron job for it? I would like to have it check every 3 hours.
Is it:
cat << EOF > /jffs/scripts/services-start
#!/bin/sh
/usr/sbin/cru a UnotellyIP "* /3 * * * /jffs/scripts/wan-start"
EOF
or can I just do a:
cat << EOF > /jffs/scripts/services-start
#!/bin/sh
/usr/sbin/cru a UnotellyIP "* /3 * * * root wget -qO - http://www.unotelly.com/unodns/auto_auth/hash_update/updateip.php?user_hash=your_token"
EOF
Please advise
Kryspy