<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5051&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] /etc/crontab and etc/cron.d]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5051</link>
		<description><![CDATA[The most recent posts in [SOLVED] /etc/crontab and etc/cron.d.]]></description>
		<lastBuildDate>Mon, 30 May 2022 08:19:36 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] /etc/crontab and etc/cron.d]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36078#p36078</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>...<br />b) the file does end with at least one newline.</p></div></blockquote></div><p>Damn, It was simply that ! and it happen to me with something else... !</p><p>Thanks @ralph.ronnquist &amp; Marjorie.</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Mon, 30 May 2022 08:19:36 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36078#p36078</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] /etc/crontab and etc/cron.d]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36077#p36077</link>
			<description><![CDATA[<p>I stand corrected.</p><p>Yes 5 * means 5 wildcards, so it will run whenever cron checks, which is presumably once every minute.</p>]]></description>
			<author><![CDATA[dummy@example.com (Marjorie)]]></author>
			<pubDate>Sun, 29 May 2022 21:23:33 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36077#p36077</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] /etc/crontab and etc/cron.d]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36076#p36076</link>
			<description><![CDATA[<p>Well, five * like that actually means &quot;run every minute&quot;, and generally it looks fine, so it really should work fine provided that<br />a) the pathnames are fully correct (also in letter casing), and<br />b) the file does end with at least one newline.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 29 May 2022 20:43:18 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36076#p36076</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] /etc/crontab and etc/cron.d]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36075#p36075</link>
			<description><![CDATA[<p>When do you actually want this cron job to repeat?</p><p>The five * you have at the beginning are where you should put the date/time info.</p><p>minute (0-59), hour (0-23), day of month (1-31), month (1-12), day of week (0-7, Sat=6, or mon..sun).</p><p>A * is used where that position is not specified. So five * means you haven&#039;t set a time/date at all.</p><p>As an example here is the mdadm job in my /etc/cron.d/</p><div class="codebox"><pre><code># cron.d/mdadm -- schedules periodic redundancy checks of MD devices
#
# Copyright © martin f. krafft &lt;madduck@madduck.net&gt;
# distributed under the terms of the Artistic Licence 2.0
#

# By default, run at 00:57 on every Sunday, but do nothing unless the day of
# the month is less than or equal to 7. Thus, only run on the first Sunday of
# each month. crontab(5) sucks, unfortunately, in this regard; therefore this
# hack (see #380425).
# time reset on grendel to 11:57 as more likely to be awake
57 11 * * 0 root if [ -x /usr/share/mdadm/checkarray ] &amp;&amp; [ $(date +\%d) -le 7 ]; then /usr/share/mdadm/checkarray --cron --all --idle --quiet; fi</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Marjorie)]]></author>
			<pubDate>Sun, 29 May 2022 19:28:40 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36075#p36075</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] /etc/crontab and etc/cron.d]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=36072#p36072</link>
			<description><![CDATA[<p>Hi everyone,</p><p>I created a shell script that I run with CRON trough</p><div class="codebox"><pre><code>su
crontab -e</code></pre></div><p>So everything is running almost smoothly.</p><p><span class="bbc">crontab -e</span> create the job in <span class="bbc">/var/spool/cron/crontabs/root</span></p><p>So not the best in my case as /var is considered as unimportant and ok to be lost...</p><p>So I rather put my cron job in <span class="bbc">/etc/crontab</span> or <span class="bbc">etc/cron.d</span></p><p>I&#039;ve tried to add something quite simple in those file/path (as test) without success</p><div class="codebox"><pre><code>* * * * * root /bin/echo -e &quot;it work&quot; &gt;&gt; /home/Spongebob/Desktop/CronWork.txt 2&gt;/home/Spongebob/Desktop/errors.txt</code></pre></div><p>Any ideas why it&#039;s not working ? (errors.txt is not even generated)</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Sun, 29 May 2022 09:04:22 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=36072#p36072</guid>
		</item>
	</channel>
</rss>
