<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">crontab -e<br>
      <br>
      <font face="Courier New, Courier, monospace"># execute script
        every 30 minutes<br>
        30 * * * * /path/to/script.sh<br>
      </font><br>
      :wq<br>
      <br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <a href="https://en.wikipedia.org/wiki/Cron">https://en.wikipedia.org/wiki/Cron</a><br>
      <br>
      I apologize for not reading the entirety of this thread. Really no
      need to use a dynamic hosting service if you simply want an email
      alert, but it would probably make your life easier in the
      long-run... not having to refer to your email at all.<br>
      <br>
      -Sean<br>
      <br>
      On 05/16/2017 01:12 PM, Bryan Pesterfield via SGVLUG wrote:<br>
    </div>
    <blockquote
cite="mid:CAJDNWNq6EXRpWyUwOdefO_pSaUQkoCupnzG0mpm5VQk2xH9NpQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div dir="auto">
        <div>My goal also involves setting up the same notice on my
          mothers pc for remote administration. 
          <div dir="auto"><br>
          </div>
          <div dir="auto">My IP has actually only changed every few
            years, whenever I change ISPs (so basically never without my
            own doing), but I am not so sure about my mothers, since it
            is usually off and in need of a router. I assume her IP
            changed within a week of installing Ubuntu, because I
            haven't been back in since then. I am making a trip to load
            the script there this weekend.</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">I have a couple domains with namecheap, but I
            never bothered looking at their perks. I was looking for a
            diy solution since I remembered reading that the free
            services all started charging.</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">Thank you guys for the advice. I will set up
            an account for the script and look into making my router do
            the work with namecheap. It is a Cisco RV130; I wanted my
            WAP to be seperate and a new router without it is getting
            harder to find.</div>
          <br>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On May 16, 2017 12:01 PM, "Jess
              Bermudes via SGVLUG" <<a moz-do-not-send="true"
                href="mailto:sgvlug@sgvlug.net">sgvlug@sgvlug.net</a>>
              wrote:<br type="attribution">
              <blockquote class="quote">
                <div dir="auto">Namecheap and probably other domain
                  registrars provide ddns for you with your purchase, so
                  then if you have a router with openwrt or something
                  you can set it up pretty easily </div>
                <div class="elided-text">
                  <div class="gmail_extra"><br>
                    <div class="gmail_quote">On May 16, 2017 14:39,
                      "Michael Proctor-Smith via SGVLUG" <<a
                        moz-do-not-send="true"
                        href="mailto:sgvlug@sgvlug.net" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sgvlug@sgvlug.net">sgvlug@sgvlug.net</a></a>>
                      wrote:<br type="attribution">
                      <blockquote class="gmail_quote">
                        <div dir="ltr">If you don't want to do it as
                          root, or your normal account do it. Then
                          create a new user to do it, don't reuse an
                          existing system account. With cron jobs the
                          place you normal fail is that from cron you
                          don't have normal user path stuff added as it
                          is not a login shell.  
                          <div><br>
                          </div>
                          <div>But in seem like you are solving a solved
                            problem that we have all gone the road of.
                            That being wanting to access your network
                            remotely and having a dynamic ip address. So
                            if I may suggest looking into one of the
                            free dynamic dns services (DDNS) and save
                            yourself the trouble of having to check
                            email to find your home ip address. Many
                            home routers will automatically update DDNS
                            when there ip address changes. </div>
                          <div class="gmail_extra"><br>
                            <div class="gmail_quote">On Tue, May 16,
                              2017 at 11:20 AM, Bryan Pesterfield via
                              SGVLUG <span dir="ltr"><<a
                                  moz-do-not-send="true"
                                  href="mailto:sgvlug@sgvlug.net"
                                  target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sgvlug@sgvlug.net">sgvlug@sgvlug.net</a></a>></span>
                              wrote:<br>
                              <blockquote class="gmail_quote">
                                <div dir="auto">Hello all,
                                  <div dir="auto"><br>
                                  </div>
                                  <div dir="auto">I have a script I
                                    wrote to monitor my external ip and
                                    send me an update via email when it
                                    changes (it checks <a
                                      moz-do-not-send="true"
                                      href="http://ipv4.icanhazip.com"
                                      target="_blank">ipv4.icanhazip.com</a>,
                                    so no parsing necessary). While the
                                    books and webpages I have looked at
                                    so far make it appear easy to set up
                                    a cron job, I am unsure of what user
                                    should be used to run the job (since
                                    nothing I looked at specified what
                                    accounts should be used, they appear
                                    to be indifferent to it). 
                                    <div dir="auto"><br>
                                    </div>
                                    <div dir="auto">It didn't seem very
                                      secure to have root or myself (aka
                                      a regular user) run the job, so I
                                      am hesitating on setting it up
                                      until I know what account should
                                      be used to run it. Do I have a
                                      system account do it, or do I set
                                      up an unique account just for it?
                                      What's the best way to do this?</div>
                                    <div dir="auto"><br>
                                    </div>
                                    <div dir="auto">Thanks in advance,</div>
                                    <div dir="auto">Bryan Pesterfield </div>
                                  </div>
                                </div>
                              </blockquote>
                            </div>
                            <br>
                          </div>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>