<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://brandonhutchinson.com/mediawiki/skins/common/feed.css?97"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Run-parts vs. user crontab execution - Revision history</title>
		<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Run-parts_vs._user_crontab_execution&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.11.0rc1</generator>
		<lastBuildDate>Wed, 19 Jun 2013 07:02:00 GMT</lastBuildDate>
		<item>
			<title>Hutch at 16:45, 30 April 2008</title>
			<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Run-parts_vs._user_crontab_execution&amp;diff=1165&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 16:45, 30 April 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* By default, '''HOME''' is set to '''/''' in ''/etc/crontab'', so all scripts executed via '''run-parts''' have a '''HOME''' of '''/'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* By default, '''HOME''' is set to '''/''' in ''/etc/crontab'', so all scripts executed via '''run-parts''' have a '''HOME''' of '''/'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* By default, '''HOME''' is the home directory in ''/etc/passwd'' of the crontab owner. This can be &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;overridden &lt;/del&gt;by a '''HOME''' line in &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/del&gt;user &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;crontab&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* By default, '''HOME''' is the home directory in ''/etc/passwd'' of the crontab owner &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;in user crontabs&lt;/ins&gt;. This can be &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;overwridden &lt;/ins&gt;by &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;including &lt;/ins&gt;a '''HOME''' line in user &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;crontabs&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This caused me problems when I tried to execute a MySQL backup script via '''run-parts''' that depended on ''~/.my.cnf'' in the user's home directory. As a workaround, I modified the script to set the HOME environment variable rather than make a global change in ''/etc/crontab'' for all '''run-parts''' scripts.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This caused me problems when I tried to execute a MySQL backup script via '''run-parts''' that depended on ''~/.my.cnf'' in the user's home directory. As a workaround, I modified the script to set the HOME environment variable rather than make a global change in ''/etc/crontab'' for all '''run-parts''' scripts.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Wed, 30 Apr 2008 16:45:07 GMT</pubDate>			<dc:creator>Hutch</dc:creator>			<comments>http://brandonhutchinson.com/wiki/Talk:Run-parts_vs._user_crontab_execution</comments>		</item>
		<item>
			<title>Hutch at 16:44, 30 April 2008</title>
			<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Run-parts_vs._user_crontab_execution&amp;diff=1164&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 16:44, 30 April 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;One caveat when running programs via '''run-parts''' (e.g., ''/etc/cron.hourly, /etc/cron.daily, etc.) vs. user crontabs is the '''HOME''' environment variable.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;One caveat when running programs via '''run-parts''' (e.g., ''/etc/cron.hourly&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;''&lt;/ins&gt;, &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;''&lt;/ins&gt;/etc/cron.daily&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;''&lt;/ins&gt;, etc.) vs. user crontabs is the '''HOME''' environment variable.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;By default, '''HOME''' is set to '''/''' in ''/etc/crontab''&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/ins&gt;By default, '''HOME''' is set to '''/''' in ''/etc/crontab''&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;, so all scripts executed via '''run-parts''' have &lt;/ins&gt;a '''HOME''' &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;of '''/'''.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Without &lt;/del&gt;a '''HOME''' &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;line in user crontabs&lt;/del&gt;, '''HOME''' is the home directory in ''/etc/passwd'' of the crontab owner.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* By default&lt;/ins&gt;, '''HOME''' is the home directory in ''/etc/passwd'' of the crontab owner&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;. This can be overridden by a '''HOME''' line in the user crontab&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This caused me problems when I tried to execute a MySQL backup script via '''run-parts''' that depended on ''~/.my.cnf'' in the user's home directory. As a workaround, I modified the script to set the HOME environment variable rather than make a global change in ''/etc/crontab'' for all '''run-parts''' scripts.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This caused me problems when I tried to execute a MySQL backup script via '''run-parts''' that depended on ''~/.my.cnf'' in the user's home directory. As a workaround, I modified the script to set the HOME environment variable rather than make a global change in ''/etc/crontab'' for all '''run-parts''' scripts.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Wed, 30 Apr 2008 16:44:24 GMT</pubDate>			<dc:creator>Hutch</dc:creator>			<comments>http://brandonhutchinson.com/wiki/Talk:Run-parts_vs._user_crontab_execution</comments>		</item>
		<item>
			<title>Hutch: New page: One caveat when running programs via '''run-parts''' (e.g., ''/etc/cron.hourly, /etc/cron.daily, etc.) vs. user crontabs is the '''HOME''' environment variable.  By default, '''HOME''' is ...</title>
			<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Run-parts_vs._user_crontab_execution&amp;diff=1163&amp;oldid=prev</link>
			<description>&lt;p&gt;New page: One caveat when running programs via '''run-parts''' (e.g., ''/etc/cron.hourly, /etc/cron.daily, etc.) vs. user crontabs is the '''HOME''' environment variable.  By default, '''HOME''' is ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;One caveat when running programs via '''run-parts''' (e.g., ''/etc/cron.hourly, /etc/cron.daily, etc.) vs. user crontabs is the '''HOME''' environment variable.&lt;br /&gt;
&lt;br /&gt;
By default, '''HOME''' is set to '''/''' in ''/etc/crontab''.&lt;br /&gt;
Without a '''HOME''' line in user crontabs, '''HOME''' is the home directory in ''/etc/passwd'' of the crontab owner.&lt;br /&gt;
&lt;br /&gt;
This caused me problems when I tried to execute a MySQL backup script via '''run-parts''' that depended on ''~/.my.cnf'' in the user's home directory. As a workaround, I modified the script to set the HOME environment variable rather than make a global change in ''/etc/crontab'' for all '''run-parts''' scripts.&lt;/div&gt;</description>
			<pubDate>Wed, 30 Apr 2008 16:43:18 GMT</pubDate>			<dc:creator>Hutch</dc:creator>			<comments>http://brandonhutchinson.com/wiki/Talk:Run-parts_vs._user_crontab_execution</comments>		</item>
	</channel>
</rss>