<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rivendellaudio.wiki/index.php?action=history&amp;feed=atom&amp;title=Creating_logs_from_the_command_line</id>
	<title>Creating logs from the command line - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rivendellaudio.wiki/index.php?action=history&amp;feed=atom&amp;title=Creating_logs_from_the_command_line"/>
	<link rel="alternate" type="text/html" href="https://rivendellaudio.wiki/index.php?title=Creating_logs_from_the_command_line&amp;action=history"/>
	<updated>2026-04-23T14:25:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://rivendellaudio.wiki/index.php?title=Creating_logs_from_the_command_line&amp;diff=28776&amp;oldid=prev</id>
		<title>imported&gt;WaybackImport: Imported from Wayback via edit</title>
		<link rel="alternate" type="text/html" href="https://rivendellaudio.wiki/index.php?title=Creating_logs_from_the_command_line&amp;diff=28776&amp;oldid=prev"/>
		<updated>2020-08-05T11:02:40Z</updated>

		<summary type="html">&lt;p&gt;Imported from Wayback via edit&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Creating logs from the command line ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Stefan wrote on about January 24th&lt;br /&gt;
&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; For a highly automated station here in Germany I have also add command&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; line switches to rdlogmanager to make log generation batchable.&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; -g  generate log&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; -m  merge music&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; -t  merge traffic&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; -s Service&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; -d day  The day the log should created for counted from today. Default&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; is 1 (create a log for tomorrow).&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; The -s switch is allways needed, also at least one of -g -m or -t&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; To generate a log for tomorrow for service &amp;quot;OnAir&amp;quot; the command would be:&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; rdlogmanager -g -s OnAir&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; To generate and merge a log for Sunday on Friday:&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; rdlogmanager -g -m -t -s OnAir -d 2&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br /&gt;
&amp;gt; &amp;gt;&amp;gt; Stefan&lt;br /&gt;
&lt;br /&gt;
To let rdlogmanager run without trying to connect to a display (useful for cronjobs):&lt;br /&gt;
DISPLAY=:0 rdlogmanager ...&lt;br /&gt;
&lt;br /&gt;
Example&lt;br /&gt;
My crontab entry is:&lt;br /&gt;
30 01 * * * /home/.../sustainLogGen.sh&lt;br /&gt;
My sustainLogGen.sh is:&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
export DISPLAY=:0.0&lt;br /&gt;
/usr/bin/rdlogmanager -g -s Production -d 3&lt;br /&gt;
exit 0&lt;br /&gt;
&lt;br /&gt;
Be sure to run (as rduser and logged into X)...&lt;br /&gt;
xhost +localhost&lt;br /&gt;
... which will let any process on the local machine connect to your display.&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
== Log Creation With Rdcatch ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you would rather the rdcatch daemon make logs&lt;br /&gt;
create a macro cart with a line like this:&lt;br /&gt;
&amp;lt;PRE&amp;gt; RN DISPLAY=:0.0 rdlogmanager -g -s SERVICE -d 1! &amp;lt;/PRE&amp;gt;&lt;br /&gt;
This executes rdlogmanager on the default display under the permission of rdcatchd deamon. That is to say if the user that runs rdcatchd and the user that runs your xorg server are different, don&amp;#039;t expect this work. Now just schedule that cart to run every day in rdcatch.&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;WaybackImport</name></author>
	</entry>
</feed>