Mandatory monthly Login with DynDNS.org automate (auto login script)

For a short time you have to, so that one does not lose its host name, log in your account every month of DynDNS.org. With a simple script and a crontab entry allows you to automate.

Log on automatically

This script automates the login account of the DynDNS.org. You must enter the user name and password only.

After running to get the feedback on whether the login has worked or not.

Automate

With crontab-e to edit your crontab and add there the following line:

Thus, an account Log in DynDNS.org is made every Sunday at 23:05.

source:http://emanuelduss.ch/

Share this Story!Email this to someoneShare on Google+0Share on Facebook0Tweet about this on TwitterPin on Pinterest0Share on Reddit0Share on LinkedIn0

8 thoughts on “Mandatory monthly Login with DynDNS.org automate (auto login script)

  1. onlinetechadvice.blogspot.com

    Thanks!, I really needed this as I have been a free user of DynDNS for a long time.

    However i get the following error:

    curl: no URL specified!
    curl: try ‘curl –help’ or ‘curl –manual’ for more information
    DynDNS.sh: line 30: https://account.dyn.com/: No such file or directory
    Login failed

    Any Ideas?

    Im running Ubuntu Server 12.04.

    Thanks.

  2. texas pete

    This script works great. One thing to be aware of:

    On the line that begins ‘MULTIFORM’, either add a linefeed between the ‘\’ and the ‘|’ before awk, or delete the ‘\’. Treat the ‘\’ characters the same on the line that begins with ‘curl’.

    See the source as metioned below the article. You’ll see what I mean. It’s in German so load it up in Google Translate if you need to, but the code is in English. 🙂 http://emanuelduss.ch/2013/05/zwingender-monatlicher-login-bei-dyndns-org-automatisieren/

    It works flawlessly for me after fixing that. The line feeds must have gotten lost when the blogger pasted in the code.

    Great work!

  3. Brian

    Thank you much for the script. If anybody wants to run this on OSX (or any other *nix system that doesn’t have mktemp, you can modify the Variable section to the following:

    # Variabeln
    PROGNAME=dyndnslogin
    DSTAMP=`date “+%Y%m%d%H%M%S”`
    COOKIE=”/tmp/${PROGNAME}_cookie_${DSTAMP}”
    OUTPUT=”/tmp/${PROGNAME}_output_${DSTAMP}”
    USERAGENT=”Mozilla/5.0″

  4. OpenIDUser

    Thanks for this.

    I found that I needed to specify my username in lowercase or change the “grep -E” command to “grep -E -i” to deal with a mixed case username specified at the top of the script.

  5. wingman

    Hi

    Thanks for the comment. You are right “-i” will search for mixed case username

    Thanks

  6. Garry Mullins

    I’ve tried to set something up like this in the past but didn’t have any luck (was using a different script). However, this one works great!

    I didn’t use mktemp because my environment (consumer NAS: DNS-323) has a different version of mktemp and I couldn’t figure out the proper usage. Brian’s comment solved that issue.

    Thanks a bunch.

Leave a Reply