<p dir="ltr"><br>
On Jan 3, 2014 4:08 AM, &quot;Lars E. Pettersson&quot; &lt;<a href="mailto:lars@homer.se">lars@homer.se</a>&gt; wrote:<br>
&gt;<br>
&gt; On 01/03/2014 05:07 AM, Pete Travis wrote:<br>
&gt;&gt;<br>
&gt;&gt; I think there was some misunderstanding here. If you can&#39;t find your<br>
&gt;&gt; cronjob output in the journal, *your* cron is broken.<br>
&gt;<br>
&gt;<br>
&gt; Default installation:<br>
&gt;<br>
&gt; [root@tux ~]# rpm -V cronie<br>
&gt; [root@tux ~]# rpm -q cronie<br>
&gt; cronie-1.4.11-4.fc20.x86_64<br>
&gt; [root@tux ~]# rpm -V crontabs<br>
&gt; [root@tux ~]# rpm -q crontabs<br>
&gt; crontabs-1.11-7.20130830git.fc20.noarch<br>
&gt;<br>
&gt;<br>
&gt;&gt; Before I get too<br>
&gt;&gt; far in, in my opinion, mails are good for notification, voluminous<br>
&gt;&gt; content should be in the logs that the mail notifies about. The journal<br>
&gt;&gt; is good at logs.<br>
&gt;<br>
&gt;<br>
&gt; Mail has no problem handling voluminous content. It is also very easy to retrieve without knowing quite a lot of strange options to a command that you have to print in a terminal.<br>
&gt;</p>
<p dir="ltr">Yes, we know you prefer mail... Mail on the command line is exactly what you describe - it requires knowing esoteric command line options to an awkward terminal application.  Two unfamiliar and clunky terminal applications for the purpose would be redundant, so one is gone.</p>

<p dir="ltr">&gt;<br>
&gt;&gt; $ journalctl SYSLOG_IDENTIFIER=CROND -f  #filtered for convenience<br>
&gt;<br>
&gt;<br>
&gt; Where is my output from yum-cron (yum-cron is run hourly and it has a fault at the moment due to spots Chrome repository not yet being up to Fedora 20)?<br>
&gt;<br>
&gt; [root@tux ~]# journalctl SYSLOG_IDENTIFIER=CROND --since=-2h<br>
&gt; -- Logs begin at Tue 2013-07-02 20:53:56 CEST, end at Fri 2014-01-03 11:40:01 CE<br>
&gt; Jan 03 09:50:01 tux CROND[3666]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt; Jan 03 10:00:01 tux CROND[3895]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt; Jan 03 10:01:01 tux CROND[4044]: (root) CMD (run-parts /etc/cron.hourly)<br>
&gt; Jan 03 10:10:01 tux CROND[4358]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt; Jan 03 10:20:01 tux CROND[5345]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt; Jan 03 10:30:01 tux CROND[5521]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt; Jan 03 10:40:01 tux CROND[5790]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt; Jan 03 10:50:01 tux CROND[6135]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt; Jan 03 11:00:01 tux CROND[6388]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt; Jan 03 11:01:01 tux CROND[6541]: (root) CMD (run-parts /etc/cron.hourly)<br>
&gt; Jan 03 11:10:01 tux CROND[6763]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt; Jan 03 11:20:01 tux CROND[6963]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt; Jan 03 11:30:01 tux CROND[7380]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt; Jan 03 11:40:01 tux CROND[7681]: (root) CMD (/usr/lib64/sa/sa1 1 1)<br>
&gt;</p>
<p dir="ltr">I see &quot; CMD (run-parts /etc/cron.hourly&quot;, that could be where the magic happens.  Maybe the output will show up with other filters, or it could be rewritten to use systemd-cat. </p>
<p dir="ltr">&gt;<br>
&gt;&gt; But wait! These things could get all mixed up on a busy machine, you<br>
&gt;&gt; say! Let&#39;s take a closer look at a message:<br>
&gt;&gt;<br>
&gt;&gt; MESSAGE=(pete) CMDOUT (New Things are Different.)<br>
&gt;<br>
&gt; [lots of lines removed]<br>
&gt;&gt;<br>
&gt;&gt;      SYSLOG_IDENTIFIER=CROND<br>
&gt;&gt;      _CMDLINE=/usr/sbin/CROND -n<br>
&gt;&gt;      _BOOT_ID=0557929cbde247928f945d8b53a6e067<br>
&gt;<br>
&gt;<br>
&gt; How is non technical user supposed to understand this? What command sequence did you use to get that output?<br>
&gt;</p>
<p dir="ltr">A non-technical user would either understand by example - the part you cut out - or, they are a nontechnical user and have no interest in such things .</p>
<p dir="ltr">&gt;<br>
&gt;&gt; $ journalctl SYSLOG_IDENTIFIER=CROND _AUDIT_SESSION=83 -b<br>
&gt;<br>
&gt;<br>
&gt; How do you find out the _AUDIT_SESSION to use?<br>
&gt;<br>
I didn&#39;t guess. There was a straightforward and easy to follow example, but you removed it.</p>
<p dir="ltr">&gt;<br>
&gt;&gt; Stop! I don&#39;t want all that extra information, you say! `journalctl`<br>
&gt;&gt; should KNOW I&#39;m not interested in the timestamp, or the hostname, or the<br>
&gt;&gt; name and PID of the reporting binary - just give me the message!<br>
&gt;&gt;<br>
&gt;&gt; journalctl SYSLOG_IDENTIFIER=CROND _AUDIT_SESSION=83 -o cat<br>
&gt;&gt; (pete) CMD (LARSHAPPY=&quot;no&quot;; if [[ &quot;$LARSHAPPY&quot; == &quot;no&quot; ]]; then echo -e<br>
&gt;&gt; &quot;&lt;This isn&#39;t the same.\nNew Th<br>
&gt;&gt; (pete) CMDOUT (This isn&#39;t the same.)<br>
&gt;&gt; (pete) CMDOUT (New Things are Different.)<br>
&gt;&gt; (pete) CMDOUT (Some people like the old thing.)<br>
&gt;<br>
&gt;<br>
&gt; That is several messages. I want only one...</p>
<p dir="ltr">So what?  If your entire complaint is &quot;it isn&#39;t a mail&quot; then send the mail and be done.</p>
<p dir="ltr">&gt;<br>
&gt; How am I notified that I should look in the journal when things go wrong? (With mail I am notified and also get the &quot;log&quot; lines all at once)<br>
&gt;</p>
<p dir="ltr">How is a nontechnical desktop user notified of new mail? That&#39;s rhetorical, don&#39;t answer. They aren&#39;t .</p>
<p dir="ltr">&gt;<br>
&gt;&gt; I&#39;ll agree that this isn&#39;t as *simple* as banging out a four letter word<br>
&gt;&gt; and reading message, but the journal can provide context, too.<br>
&gt;<br>
&gt;<br>
&gt; I am not arguing whether the journal is good or not, I am arguing whether removing the MTA used to send mail, sent from some applications, is good or bad. As I see it, as long as some applications do send mail, we have to have a MTA. Or at least let those applications have a requirement of a MTA so that the MTA is installed when those applications are installed on the system. That is my key argument, not that the journal is bad.<br>

&gt;<br>
&gt; The journal is OK, but very hard for a non technical user to use. What is needed is probably a very good graphical frontend that hides all these strange things you show us in your mail. How is a non technical user supposed to understand all this?<br>

&gt;</p>
<p dir="ltr">OK, then, your argument is late and pointless. Appeal to fesco if you feel strongly about adding sendmail to the default installation, such decisions are not made on the user support list.</p>
<p dir="ltr">&gt;<br>
&gt;&gt; You&#39;re putting lots of effort into complaining about a hugely useful<br>
&gt;&gt; tool, and apparently little into learning about it.  If the complaint is<br>
&gt;&gt; about cronjobs, start here:<br>
&gt;<br>
&gt;<br>
&gt; I am not complaining about the journal. But please let us know where to find a &quot;journal for dummies&quot; text where we can find out how to become journal experts. The man page is a bit sparse on information.<br>

&gt;<br>
&gt;<br>
&gt;&gt; Of course, if you like the old way, you can just install and configure<br>
&gt;&gt; an MTA.<br>
&gt;<br>
&gt;<br>
&gt; I have to as long as some applications use that path to send messages to me. The same thing goes for all others installing these applications. Without a MTA these messages are lost in bit space.<br>
&gt;<br>
&gt;<br>
&gt; Lars<br>
&gt; -- </p>
<p dir="ltr">More &quot;I like using mail&quot; ranting here. That&#39;s fine, use mail.  I just wanted to point out how to use the journal, so I&#39;m done here.</p>
<p dir="ltr">--Pete</p>