Quote:
|
Originally Posted by domino
I've search here and didn't find any hit that pertains to my question. So i'm sorry if this has been covered. I know this should be posted in the proper site, but I figured this post can be useful to other n00bs like myself.
How do I add the fallowing to cron every 15min?
Code:
wget -O - --http-user=username --http-passwd=password "https://dynamic.zoneedit.com/auth/dynamic.html?host=domain.com"
I have webmin installed and I am in the cron section. I'm guessing I paste the code above in the " Input to command" box. But what do I type in the " Command" box? Should I run this job as root? What if I need to update 3 other domains? Do I create 3 other cron jobs?
Can anyone recomend a n00b friendly DNS client with gui? What about ez-ipupdate? I have the RPM version for RedHat, but will it work properly with Fedora?
Greets!
|
I would solve it like this:
1) Write a small shell script that contains the code for the zoneupdates, lets call it zoneupdate.sh, we store it for example in the /root folder.
Contents of /root/zoneupdate.sh
Code:
#!/bin/bash
wget -O - --http-user=username --http-passwd=password "https://dynamic.zoneedit.com/auth/dynamic.html?host=domain.com"
In this shellscript you can add a line for each domain.
To make the script executable, run this comand:
Code:
chmod +x /root/zoneupdate.sh
Now we add the cronjob. Run this command on the shell as root user to open the root crontab in an editor:
Then we insert this line at the end and save the file:
Code:
0,15,30,45 * * * * /root/zoneupdate.sh &> /dev/null
(This is untested and may contain errors

)
Recent comments
22 hours 32 min ago
22 hours 37 min ago
1 day 3 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 16 hours ago
1 day 23 hours ago
2 days 3 hours ago
2 days 4 hours ago