<?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=6421&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Clear logs]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=6421</link>
		<description><![CDATA[The most recent posts in Clear logs.]]></description>
		<lastBuildDate>Sun, 18 Feb 2024 17:01:58 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48289#p48289</link>
			<description><![CDATA[<p><span class="bbc">&gt;filename</span> is the quickest way to empty a file. Or <span class="bbc">cat /dev/null &gt;filename</span> if you want it to be more readable.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Sun, 18 Feb 2024 17:01:58 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48289#p48289</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48276#p48276</link>
			<description><![CDATA[<p>Amen!<br />Now everything is clear, I didn’t realize it right away. <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (aluma)]]></author>
			<pubDate>Sun, 18 Feb 2024 09:47:31 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48276#p48276</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48266#p48266</link>
			<description><![CDATA[<p>I came up with the idea to cat a semi-colon to blank the file, as I remember using wvdial whick needed a semi-colon for a blank password.</p><p>I am very grateful ralph.ronnquist for your attention to the monkey scripting, which I obtained surfing the web.<br />The above script which I posted works.<br />But it is rubbish, obscure, abstruse, incorrect.<br />As you inform us, the script fails if the files already removed.<br />As to reset empty content, if I, cat ; &gt; file, it stays like that forever, until I Ctrl Z, if I, timeout 1 cat ; &gt; file, after one second it stops, it works.<br />I need to re-read numerous times, and comprehend, and understand, your superlative help.<br />Removing those two files, and resetting the other two, is exactly what I seek.<br />I do not want an archive of boot.gz &amp; dmesg.gz, and I want empty kern.log &amp; syslog, so I may study just one boot to login, if you understand me.<br />Your help is most champion, I will study, and learn.</p><p>Hello GlennW, I create files with touch all the time, perhaps everyone should.</p><p>In a world where nothing lasts forever, as for preserving our artefects (that&#039;s Australian &amp; British spelling, which is correct from the Latin, I am spelling it Australian as a mark of respect to ralph.ronnquist!) I think rust is the most reliable, I think that&#039;s what banks prioritise, although I think the tax office is the most reliable.<br />I piece of ink and paper full of ones and zeros would be best, I suppose a quality microfiche is marvellous, thesedays could easily be machine read. I know that a lot of images/artworks are copied to A3 prints and preserved in a container.<br />The FBI would give us words of wisdom, but it wouldn&#039;t be concise, better asking the LAPD, they&#039;d give us a second to none answer.<br />P.s. Emailing an attachment to yourself is handy.<br />And microsd cards are not gripped when they &#039;click&#039; into devices is good to know.</p><p>I only really have one pedantic pet hate, it&#039;s not an adapter, it&#039;s an ADAPTOR!<br />By the way, if you&#039;re an American in Balmoral in Scotland, it&#039;s NOT Balmorale!</p>]]></description>
			<author><![CDATA[dummy@example.com (bilhook)]]></author>
			<pubDate>Sat, 17 Feb 2024 21:37:01 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48266#p48266</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48257#p48257</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>aluma wrote:</cite><blockquote><div><p>... replace cron and logrotate?</p></div></blockquote></div><p>Don&#039;t think so.<br /><em>I</em> certainly won&#039;t, find them both to be quite useful.</p><div class="quotebox"><blockquote><div><p>... has the number of rewrites become smaller ...</p></div></blockquote></div><p>Can&#039;t really say.<br />If it has, I think that it may probably be by a relatively insignificant amount.</p><p>That said, there&#039;s always <span class="bbc">fstrim</span> running with <span class="bbc">cron.weekly</span>.<br />And <span class="bbc">/var/log/trim.log</span> to check and see that it is working properly.</p><p>No need to <span class="bbc">logrotate</span> it.<br />Started 01/04/2021 and it is only 600 lines long / 30K.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 17 Feb 2024 14:58:08 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48257#p48257</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48256#p48256</link>
			<description><![CDATA[<p>It&#039;s nice to be in the company of literate people! <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>But can someone explain why all this fuss with rm /var/log/boot.0 ?<br />Will we replace cron and logrotate?<br />And what does SSD have to do with it? Has the number of rewrites become smaller due to this?</p><p>But SSDs are actually good, especially for older laptops with weak processors.</p>]]></description>
			<author><![CDATA[dummy@example.com (aluma)]]></author>
			<pubDate>Sat, 17 Feb 2024 14:05:57 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48256#p48256</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48253#p48253</link>
			<description><![CDATA[<div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>Not too sure about the date and time stamp.</p></div></blockquote></div><p>See <a href="https://www.thegeekstuff.com/2012/11/linux-touch-command/" rel="nofollow">here</a>.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 17 Feb 2024 11:30:05 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48253#p48253</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48252#p48252</link>
			<description><![CDATA[<p>There is a logrotate command.</p><div class="codebox"><pre><code>logrotate -f, --force Force file rotation</code></pre></div><p>The log is needed during setup, if everything works, why not completely disable it?<br />And turn it on if necessary.</p>]]></description>
			<author><![CDATA[dummy@example.com (aluma)]]></author>
			<pubDate>Sat, 17 Feb 2024 10:31:36 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48252#p48252</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48250#p48250</link>
			<description><![CDATA[<p>I&#039;ve used &quot;touch&quot; to create a empty file... Not too sure about the date and time stamp.</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Sat, 17 Feb 2024 04:56:57 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48250#p48250</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48247#p48247</link>
			<description><![CDATA[<p>I am still on spinning rust . . . and at my age could very well have a lifetime supply in my stash . . .</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Sat, 17 Feb 2024 01:12:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48247#p48247</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48246#p48246</link>
			<description><![CDATA[<p>^^^^^^<br />Same here.</p>]]></description>
			<author><![CDATA[dummy@example.com (ComputerBob)]]></author>
			<pubDate>Sat, 17 Feb 2024 01:12:29 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48246#p48246</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48244#p48244</link>
			<description><![CDATA[<div class="quotebox"><cite>bilhook wrote:</cite><blockquote><div><p>because thesedays we all use SSD&#039;s right</p></div></blockquote></div><p>No sir...but I&#039;m just some guy who like things old-school... <img src="http://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (The-Amnesiac-Philosopher)]]></author>
			<pubDate>Sat, 17 Feb 2024 00:51:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48244#p48244</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48240#p48240</link>
			<description><![CDATA[<p>Those <span class="bbc">timeout 1 cat</span> sub commands serve no purpose apart from delaying execution (which is what <span class="bbc">timeout</span> achives). Is that from some random web advice?</p><p>And why do you want to connect some sub commands? And in such obscure manner?<br />Your script effectively has three command lines:</p><div class="codebox"><pre><code>rm /var/log/boot.0 &amp;&amp; rm /var/log/dmesg &amp;&amp; timeout 1 cat</code></pre></div><div class="codebox"><pre><code>&gt; /var/log/kern.log &amp;&amp; timeout 1 cat</code></pre></div><div class="codebox"><pre><code>&gt; /var/log/syslog</code></pre></div><p>Those are the portions up to the semi-colons, which sub-dvide them into those command lines whilst <span class="bbc">&amp;&amp;</span> joins sub commands such that the latter (the right-hand side sub command) is only executed if the former (the left-hand side sub command)&#160; succeeds.</p><p>I&#039;d suggest you rather want something like this:</p><div class="codebox"><pre><code>#!/bin/sh
rm -f /var/log/boot.0 /var/log/dmesg
&gt; /var/log/kern.log
&gt; /var/log/syslog</code></pre></div><p>I.e. remove the first two files ignoring that they might alread be removed, and then reset the other two to empty contents.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 16 Feb 2024 21:24:38 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48240#p48240</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48227#p48227</link>
			<description><![CDATA[<p>#!/bin/sh<br />rm /var/log/boot.0 &amp;&amp;<br />rm /var/log/dmesg &amp;&amp;<br />timeout 1 cat ; &gt; /var/log/kern.log &amp;&amp;<br />timeout 1 cat ; &gt; /var/log/syslog</p>]]></description>
			<author><![CDATA[dummy@example.com (bilhook)]]></author>
			<pubDate>Fri, 16 Feb 2024 16:21:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48227#p48227</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48175#p48175</link>
			<description><![CDATA[<p>I just disabled the rsyslog service.</p><p>P.S. Just in case, this is not recommended with systemd.</p>]]></description>
			<author><![CDATA[dummy@example.com (aluma)]]></author>
			<pubDate>Thu, 15 Feb 2024 17:25:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48175#p48175</guid>
		</item>
		<item>
			<title><![CDATA[Clear logs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48172#p48172</link>
			<description><![CDATA[<p>When I install I chroot /target and put noatime in fstab because thesedays we all use SSD&#039;s right.<br />Install, hopefully apt-cdrom will get into the 21st century and do something simples about add usb.</p><p>When I boot I rm /var/log/boot.0, and rm /var/log/dmesg.<br />And I, cat ; &gt; /var/log/kern.log, and cat ; &gt; /var/log/syslog<br />I would like to compile a script using the &amp;&amp; operator say,<br />but I don&#039;t think I can pass a time argument to cat and then subsequently Ctrl Z.<br />Alternative?</p>]]></description>
			<author><![CDATA[dummy@example.com (bilhook)]]></author>
			<pubDate>Thu, 15 Feb 2024 16:25:34 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48172#p48172</guid>
		</item>
	</channel>
</rss>
