<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=5782&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] is cron daemon crond is running when there is no cronjob set ?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5782</link>
		<description><![CDATA[The most recent posts in [SOLVED] is cron daemon crond is running when there is no cronjob set ?.]]></description>
		<lastBuildDate>Sat, 29 Jul 2023 13:12:01 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] is cron daemon crond is running when there is no cronjob set ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=43116#p43116</link>
			<description><![CDATA[<p>Thank you all for your additional inputs !</p><p>I&#039;ve tried <strong>pgrep </strong> = ♥</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Sat, 29 Jul 2023 13:12:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=43116#p43116</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] is cron daemon crond is running when there is no cronjob set ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42846#p42846</link>
			<description><![CDATA[<p>Neither appending an end-of-line anchor nor doing a second negative grep are guaranteed &quot;lossless&quot; solutions - they both have potential to exclude valid lines. (Might not be very likely with the latter, but is still possible.)</p><p>Wrapping one of the characters in a character class will never exclude anything except the specific unwanted grep line, and is only two extra key presses.</p><p>And again, an even better solution is to ensure <a href="https://packages.debian.org/stable/procps" rel="nofollow">procps</a> is installed, and use <a href="https://manpages.debian.org/bookworm/procps/pgrep.1.en.html" rel="nofollow">pgrep</a>, which never includes itself in its output and defaults to just the pid; if one needs the extra detail ps provides, <span class="bbc">ps u $(pgrep cron)</span> will do that.</p>]]></description>
			<author><![CDATA[dummy@example.com (boughtonp)]]></author>
			<pubDate>Sun, 09 Jul 2023 21:11:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42846#p42846</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] is cron daemon crond is running when there is no cronjob set ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42844#p42844</link>
			<description><![CDATA[<div class="quotebox"><cite>aitor wrote:</cite><blockquote><div><div class="quotebox"><cite>SpongeBOB wrote:</cite><blockquote><div><p>Thank you all for your reply !</p><p>Thank you that have confirmed my thinking. I&#039;m shocked that some people can post &quot;tutorial&quot; without mastering a bit the topic.... <span class="bbs">Internet</span> peoples.. <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>@boughtonp, oh great indeed I will use also a regex expression in grep to avoid to have the grep itself in the results.</p><div class="codebox"><pre><code>ps aux | grep &#039;cron$&#039;</code></pre></div></div></blockquote></div><p>Another way to avoid the unwanted expression might be using the syntax <span class="bbc">grep -v &quot;unwanted_regex_expression&quot;</span>. Therefore, you can avoid the grep itself as follows:</p><div class="codebox"><pre><code>ps aux | grep &quot;cron&quot; | grep -v &quot; grep &quot;</code></pre></div></div></blockquote></div><p>The line containing the grep command itself <strong>is supposed</strong> to be printed at the end due to its higher pid -and then it&#039;ll be ignored thanks to the use of the regex &#039;cron$&#039;-, but who knows...</p>]]></description>
			<author><![CDATA[dummy@example.com (aitor)]]></author>
			<pubDate>Sun, 09 Jul 2023 18:56:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42844#p42844</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] is cron daemon crond is running when there is no cronjob set ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42843#p42843</link>
			<description><![CDATA[<div class="quotebox"><cite>SpongeBOB wrote:</cite><blockquote><div><p>Thank you all for your reply !</p><p>Thank you that have confirmed my thinking. I&#039;m shocked that some people can post &quot;tutorial&quot; without mastering a bit the topic.... <span class="bbs">Internet</span> peoples.. <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>@boughtonp, oh great indeed I will use also a regex expression in grep to avoid to have the grep itself in the results.</p><div class="codebox"><pre><code>ps aux | grep &#039;cron$&#039;</code></pre></div></div></blockquote></div><p>Another way to avoid the unwanted expression might be using the syntax <span class="bbc">grep -v &quot;unwanted_regex_expression&quot;</span>. Therefore, you can avoid the grep itself as follows:</p><div class="codebox"><pre><code>ps aux | grep &quot;cron&quot; | grep -v &quot; grep &quot;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (aitor)]]></author>
			<pubDate>Sun, 09 Jul 2023 18:28:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42843#p42843</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] is cron daemon crond is running when there is no cronjob set ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42798#p42798</link>
			<description><![CDATA[<p>Thank you all for your reply !</p><p>Thank you that have confirmed my thinking. I&#039;m shocked that some people can post &quot;tutorial&quot; without mastering a bit the topic.... <span class="bbs">Internet</span> peoples.. <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>@boughtonp, oh great indeed I will use also a regex expression in grep to avoid to have the grep itself in the results.</p><div class="codebox"><pre><code>ps aux | grep &#039;cron$&#039;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Fri, 07 Jul 2023 05:28:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42798#p42798</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] is cron daemon crond is running when there is no cronjob set ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42792#p42792</link>
			<description><![CDATA[<p>On the unasked adjacent question, the common solution to grep appearing in ps|grep output is to alter the pattern so it doesn&#039;t match itself, e.g. <span class="bbc">ps aux | grep &#039;cro[n]&#039;</span></p><p>Another solution is <a href="https://manpages.debian.org/bookworm/procps/pgrep.1.en.html" rel="nofollow">pgrep</a>.</p>]]></description>
			<author><![CDATA[dummy@example.com (boughtonp)]]></author>
			<pubDate>Thu, 06 Jul 2023 15:06:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42792#p42792</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] is cron daemon crond is running when there is no cronjob set ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42790#p42790</link>
			<description><![CDATA[<p>I blame forgetfulness (aka old age):</p><div class="codebox"><pre><code>$ ps aux | grep cron
root      1516  0.0  0.0   8684  3460 ?        Ss   Jul01   0:01 /usr/sbin/cron
alexk     8432  0.0  0.0   6372   712 pts/0    S+   14:52   0:00 grep --color=auto cron</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Thu, 06 Jul 2023 13:53:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42790#p42790</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] is cron daemon crond is running when there is no cronjob set ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42786#p42786</link>
			<description><![CDATA[<p>my 2 cents to it:</p><div class="codebox"><pre><code>andre@kyoto:~$ ps -aef | grep cron
root      2403     1  0 09:45 ?        00:00:00 /usr/sbin/cron
andre    11016 10606  0 12:45 pts/0    00:00:00 grep --color=auto cron
andre@kyoto:~$ </code></pre></div><p>The daemon is called cron:</p><div class="codebox"><pre><code>andre@kyoto:~$ ls -l /etc/init.d/cron*
-rwxr-xr-x 1 root root 3059 Oct 11  2019 /etc/init.d/cron
andre@kyoto:~$</code></pre></div><p>Devuan 4, Chimaera, up-to-date.</p>]]></description>
			<author><![CDATA[dummy@example.com (Andre4freedom)]]></author>
			<pubDate>Thu, 06 Jul 2023 10:51:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42786#p42786</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] is cron daemon crond is running when there is no cronjob set ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42784#p42784</link>
			<description><![CDATA[<div class="quotebox"><cite>SpongeBOB wrote:</cite><blockquote><div><p>it&#039;s look like that we see <span class="bbu">the grep process</span> ! not the crond !? Am I right?</p></div></blockquote></div><p>Correct (I got the exact same result). Cron is NOT running in your system (you have grepped for &#039;crond&#039;, and therefore in the ps listing it shows the full command-line, which includes &#039;crond&#039;). If Cron *was* running there would be at least 2 ps lines containing &#039;crond&#039;, one for the daemon &amp; one for grep.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Thu, 06 Jul 2023 10:25:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42784#p42784</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] is cron daemon crond is running when there is no cronjob set ?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42782#p42782</link>
			<description><![CDATA[<p>Hi everyone,</p><p>I would like to create a cronjob.</p><p>I&#039;ve found a &quot;tutorial&quot; online --&gt;&#160; <a href="https://linuxhandbook.com/crontab/#the-cron-daemon" rel="nofollow">https://linuxhandbook.com/crontab/#the-cron-daemon</a></p><p>But it&#039;s start already weirdly...</p><p>on his example</p><div class="codebox"><pre><code>christopher@pop-os:~$ ps ux | grep crond
christo+  8942  0.0  0.0  18612   840 pts/0    S+   02:16   0:00 grep --color=auto crond</code></pre></div><div class="quotebox"><blockquote><div><p>I can see that the daemon is running for my user account.</p></div></blockquote></div><p><img src="https://dev1galaxy.org/img/smilies/neutral.png" width="15" height="15" alt="neutral" /> for me it&#039;s look like that we see <span class="bbu">the grep process</span> ! not the crond !? Am I right?</p><p>anyway I&#039;ve tried on my Devuan(Chimaera) and I don&#039;t see a crond running.. is that normal ?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Thu, 06 Jul 2023 09:13:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42782#p42782</guid>
		</item>
	</channel>
</rss>
