What's new

Unotelly Cron Job

Kryspy

Occasional Visitor
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
 
1. only for minutes you can use */5 syntax. for hours use 3,6,9,12,15,18,21,24

2. I create file /jffs/crontabs/admin and add cron jobs to that file
3. in init-start script add:
ln -s /jffs/crontabs/admin /var/spool/cron/crontabs/admin
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top