<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Libre Things &#187; crontab</title>
	<atom:link href="http://positon.org/tag/crontab/feed" rel="self" type="application/rss+xml" />
	<link>http://positon.org</link>
	<description></description>
	<lastBuildDate>Tue, 23 Feb 2016 20:01:11 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.7.1</generator>
	<item>
		<title>Cron mail subject format</title>
		<link>http://positon.org/cron-mail-subject-format</link>
		<comments>http://positon.org/cron-mail-subject-format#comments</comments>
		<pubDate>Wed, 21 Oct 2009 10:26:00 +0000</pubDate>
		<dc:creator><![CDATA[dooblem]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://positon.org:81/?p=66</guid>
		<description><![CDATA[I looked for a way of changing mail format sent by the crontab. I hoped for a syntax like MAILTO= Answer: Impossible. With Debian default cron program, it&#8217;s hard coded in cron : In do_command.c source file: fprintf(mail, &#34;From: root (Cron Daemon)\n&#34;); fprintf(mail, &#34;To: %s\n&#34;, mailto); fprintf(mail, &#34;Subject: Cron &#60;%s@%s&#62; %s\n&#34;, usernm, first_word(hostname, &#34;.&#34;), e-&#62;cmd);]]></description>
				<content:encoded><![CDATA[<p>I looked for a way of changing mail format sent by the crontab.<br />
I hoped for a syntax like <code>MAILTO=</code></p>
<p>Answer: Impossible.</p>
<p>With Debian default cron program, it&#8217;s hard coded in cron :</p>
<p>In <code>do_command.c</code> source file:</p>
<pre>
fprintf(mail, &quot;From: root (Cron Daemon)\n&quot;);
fprintf(mail, &quot;To: %s\n&quot;, mailto);
fprintf(mail, &quot;Subject: Cron &lt;%s@%s&gt; %s\n&quot;,
  usernm, first_word(hostname, &quot;.&quot;),
  e-&gt;cmd);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://positon.org/cron-mail-subject-format/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
