Here's a step-by-step guide on how to run the
cf-dyndns.sh process in a cron job:
**Warning:**
Before running this command, you need to log in as an administrator or root user with
root:super privileges.
**Step 1: Find your DynDNS account info**
* Go to the DynDNS dashboard and look for your account information in your "Account" list.
* Note down the following:
``
shell
TARGET-NAME
`
### SILENT
For now, it's better to do all this without getting any interactive output.
**Step 2: Locate cron table with dynamically-running jobs**
* Open the crontab editor as a text user using crontab -e
.
* Type the line below to enable dynamic execution of new cron jobs:
`
*/5 * * * * find /var/spool/dynndns -type f -mtime > 1 -print0
`
Replace /var/spool/dynndns
with your actual partition or mount point and mtime > 1 -print0
with the desired output format.
**Step 3: Run cron jobs in a batch file**
* Save the above command as a script (e.g. update_cron.sh
):
`
#!/bin/tcsh -fn
find /var/spool/dynndns -type f -mtime > 1 -print0 | while read x; do
echo "Updating $x";
/usr/bin/lynx -source "${x}" https://your-dyndns-url.com
done;
`
* Replace update_cron.sh
with the actual path and execute:
`
chmod +x update_cron.sh
./update_cron.sh
``
**Important:** Make sure to run this as 'root' or 'sudo'.
Please ensure your DynDNS host is reachable from both servers, and cron should be updated for any other dependencies.