<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2Fcron</id>
	<title>Linux/cron - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2Fcron"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/cron&amp;action=history"/>
	<updated>2026-05-07T03:46:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Linux/cron&amp;diff=1285&amp;oldid=prev</id>
		<title>Kenneth: /* See Also */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/cron&amp;diff=1285&amp;oldid=prev"/>
		<updated>2014-11-08T21:00:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See Also&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== cron ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;quot;The software utility Cron is a time-based job scheduler in Unix-like computer operating systems. People who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration—though its general-purpose nature makes it useful for things like connecting to the Internet and downloading email at regular intervals.[1] The name cron comes from the Greek word for time, χρόνος chronos.&amp;quot;&amp;#039;&amp;#039; [http://en.wikipedia.org/wiki/Cron]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
 yum install vixie-cron crontabs&lt;br /&gt;
 service crond restart&lt;br /&gt;
&lt;br /&gt;
== crontabs ==&lt;br /&gt;
&lt;br /&gt;
[http://www.adminschoice.com/docs/crontab.htm Crontab - Quick reference]:&lt;br /&gt;
&lt;br /&gt;
Commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export EDITOR=vi   # specify a editor to open crontab file.&lt;br /&gt;
&lt;br /&gt;
crontab -e      Edit your crontab file, or create one if it doesn&amp;#039;t already exist.&lt;br /&gt;
rontab -l      Display your crontab file.&lt;br /&gt;
crontab -r      Remove your crontab file.&lt;br /&gt;
crontab -v      Display the last time you edited your crontab file. (This option is only available on a few systems.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
crontab layout:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# min hr day mon wkday   cmd&lt;br /&gt;
&lt;br /&gt;
 *     *     *     *     *  command to be executed&lt;br /&gt;
 -     -     -     -     -&lt;br /&gt;
 |     |     |     |     |&lt;br /&gt;
 |     |     |     |     +----- day of week (0 - 6) (Sunday=0)&lt;br /&gt;
 |     |     |     +------- month (1 - 12)&lt;br /&gt;
 |     |     +--------- day of month (1 - 31)&lt;br /&gt;
 |     +----------- hour (0 - 23)&lt;br /&gt;
 +------------- min (0 - 59)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://kb.iu.edu/data/afiz.html What are cron and crontab, and how do I use them?]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Field	Value	Description&lt;br /&gt;
minute	0-59	The exact minute that the command sequence executes&lt;br /&gt;
hour	0-23	The hour of the day that the command sequence executes&lt;br /&gt;
day	1-31	The day of the month that the command sequence executes&lt;br /&gt;
month	1-12	The month of the year that the command sequence executes&lt;br /&gt;
weekday	0-6	The day of the week that the command sequence executes (Sunday = 0, Monday = 1, Tuesday = 2, and so forth)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All marker: Use &amp;#039;*&amp;#039; to indicate this should happen for all time increments for the selected column&lt;br /&gt;
&lt;br /&gt;
Step:&lt;br /&gt;
 */10 * * * *   [sometask]        # do every 10 minutes&lt;br /&gt;
&lt;br /&gt;
Lists:&lt;br /&gt;
 0,15,30,45 * * * *   [sometask]  # list of minutes&lt;br /&gt;
 0-4,8-12 * * * *     [sometask]  # range and list of minutes&lt;br /&gt;
 0 0-23/2 * * * *     [sometask]  # range with step (run ever other hour)&lt;br /&gt;
&lt;br /&gt;
New line character &amp;#039;%&amp;#039;&lt;br /&gt;
  0 22 * * 1-5    mail -s &amp;quot;It’s 10pm&amp;quot; joe%Joe,%%Where are your kids?%&lt;br /&gt;
&lt;br /&gt;
Cron Environment Variables:&lt;br /&gt;
 # use /bin/sh to run commands, no matter what /etc/passwd says&lt;br /&gt;
 SHELL=/bin/sh&lt;br /&gt;
 # mail any output to ‘paul’, no matter whose crontab this is&lt;br /&gt;
 MAILTO=paul&lt;br /&gt;
 &lt;br /&gt;
Special strings:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
              string         meaning&lt;br /&gt;
              ------         -------&lt;br /&gt;
              @reboot        Run once, at startup.&lt;br /&gt;
              @yearly        Run once a year, &amp;quot;0 0 1 1 *&amp;quot;.&lt;br /&gt;
              @annually      (same as @yearly)&lt;br /&gt;
              @monthly       Run once a month, &amp;quot;0 0 1 * *&amp;quot;.&lt;br /&gt;
              @weekly        Run once a week, &amp;quot;0 0 * * 0&amp;quot;.&lt;br /&gt;
              @daily         Run once a day, &amp;quot;0 0 * * *&amp;quot;.&lt;br /&gt;
              @midnight      (same as @daily)&lt;br /&gt;
              @hourly        Run once an hour, &amp;quot;0 * * * *&amp;quot;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Help:&lt;br /&gt;
 man 5 crontab&lt;br /&gt;
&lt;br /&gt;
Run script on reboot: [http://www.raspberrypi-spy.co.uk/2013/07/running-a-python-script-at-boot-using-cron/]&lt;br /&gt;
 @reboot python /home/pi/MyScript.py &amp;amp;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[at]]&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
linux cron&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>