<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Crontab on Michael’s Domain</title><link>https://jeltsch.org/en/tags/crontab/</link><description>Recent content in Crontab on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/crontab/index.xml" rel="self" type="application/rss+xml"/><item><title>Dynamic DNS with DomainDiscount24 and pfsense</title><link>https://jeltsch.org/en/dynamic_dns_with_domaindiscount24_and_pfsense/</link><pubDate>Sat, 27 May 2023 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/dynamic_dns_with_domaindiscount24_and_pfsense/</guid><description>&lt;p&gt;Many companies offer free dynamic DNS. But since I use DomainDiscount24, I also use their dynamic DNS service. To update the IP address of vpn.jeltsch.org, I need to send an https request to a specific URL, including a password and the hostname for which I want the update:&lt;code&gt;https://dynamicdns.key-systems.net/update.php?hostname=vpn.jeltsch.org&amp;amp;password=12345678&amp;amp;ip=auto&lt;/code&gt;To automate this, I use the crontab of my pfsense router. Editing the crontab is not enabled by default, but you can download and install the cron package. After that, you get a GUI under &amp;ldquo;Services &amp;gt; Cron&amp;rdquo;, where you add the timing and the command:&lt;code&gt;/usr/local/bin/curl &amp;quot;https://dynamicdns.key-systems.net/update.php?hostname=vpn.jeltsch.org&amp;amp;password=12345678&amp;amp;ip=auto&amp;quot;&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Editing the crontab</title><link>https://jeltsch.org/en/editing_the_crontab/</link><pubDate>Thu, 24 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/editing_the_crontab/</guid><description>&lt;p&gt;We have a shared directory (/home/shared) on our computer and a usergroup called &amp;ldquo;shared&amp;rdquo;. The purpose is that we put things there that should be accessible (including writable) to several users of the system. If one user puts a file there, it can be read by others but not e.g. deleted. In order to fix this, we edited the crontab to execute every 5 minutes the following two commands: &lt;code&gt;chgrp -R shared /home/sharedchmod -R 744 /home/shared&lt;/code&gt;In order to do this we edited (as root of course) the /etc/crontab file by adding the line: &lt;code&gt;*/5 * * * * root run-parts /etc/cron.minutely&lt;/code&gt;This means execution every 5 minutes, every hour, every day, every month, every weekday the script run-parts should be executed as root taking all scripts from the /etc/cron.minutely as argument (we created this directory newly in addition to the already existing /etc/cron.hourly, etc.). We restarted crond (the crontab deamon) via the GUI (under RedHat 9 Menu-System Settings-Server Settings-Services).&lt;/p&gt;</description></item></channel></rss>