<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi Folks,</div>

<div><br/>
first, thanks for answering my last question - especially to Lennard. It was a great help to me.</div>

<div><br/>
Now, I have still a problem with processing the command "journalctl --setup-keys --force", because of its confusing output. Finally, I would like to have a confirmation that all has been done correctly.</div>

<div><br/>
Attached you will find a screenshot of two executed commands. The first one is the journal command directly executed, while the second is a C++ program written by me, which calls the journal command via <em>fork</em> and <em>exec</em> and redirects its output of <em>stdout</em> and <em>stderr</em> via <em>pipes </em>to this program, which are only output with a corresponding identifier. In advance, I've actually expected that both programs produce similar output, but this was suprisingly not the case. Beside this, the command announces an error message, which suggests that something has gone bad. However, both programs return 0 at their end, which indicates success.</div>

<div><br/>
But let's go into depth...</div>

<div> </div>

<div>When executing the command directly the following output is generated:</div>

<div> </div>

<div>
<div><span style="font-size:10px;"><span style="font-family:Courier New,Courier,monospace;">developer@debianVM ~ % sudo journalctl --setup-keys --force<br/>
Generating seed...<br/>
Generating key pair...<br/>
Generating sealing key...<br/>
Failed to set file attributes: Operation not supported</span></span></div>

<div><span style="font-size:10px;"><span style="font-family:Courier New,Courier,monospace;">The new key pair has been generated. The secret sealing key has been written to<br/>
the following local file. This key file is automatically updated when the<br/>
sealing key is advanced. It should not be used on multiple hosts.</span></span></div>

<div><span style="font-size:10px;"><span style="font-family:Courier New,Courier,monospace;">    /var/log/journal/c1223bdbe6484166aa9af858c392a7e0/fss</span></span></div>

<div><span style="font-size:10px;"><span style="font-family:Courier New,Courier,monospace;">Please write down the following secret verification key. It should be stored<br/>
at a safe location and should not be saved locally on disk.</span></span></div>

<div><span style="font-size:10px;"><span style="font-family:Courier New,Courier,monospace;">    80f1af-760e3b-bca6f8-b265cb/1b5da7-35a4e900</span></span></div>

<div><span style="font-size:10px;"><span style="font-family:Courier New,Courier,monospace;">The sealing key is automatically changed every 15min.</span></span></div>

<div><span style="font-size:10px;"><span style="font-family:Courier New,Courier,monospace;">The keys have been generated for host debianVM/c1223bdbe6484166aa9af858c392a7e0.</span></span></div>

<div> </div>

<div>When executing my program I'll see only the following output:</div>

<div> </div>

<div>
<div><span style="font-size:10px;"><span style="font-family:Courier New,Courier,monospace;">developer@debianVM ~ % sudo /home/developer/scb/LoggerDaemon_1st/scb/scb/logger_daemon/build/cmake.debug.linux.x86_64/logger_daemon <br/>
err:<br/>
Generating seed...<br/>
Generating key pair...</span></span></div>

<div><span style="font-size:10px;"><span style="font-family:Courier New,Courier,monospace;">err:<br/>
Generating sealing key...</span></span></div>

<div><span style="font-size:10px;"><span style="font-family:Courier New,Courier,monospace;">err:<br/>
Failed to set file attributes: Operation not supported</span></span></div>

<div><span style="font-size:10px;"><span style="font-family:Courier New,Courier,monospace;">std:<br/>
72aa1f-825856-6d408b-4308bb/1b5da7-35a4e900</span></span><br/>
 </div>

<div>This means that 4 lines where posted by stderr (err:)  and 1 line by stdout (std:).</div>

<div> </div>

<div>Now my questions:</div>

<ul>
        <li>What's about the rest of lines? Where do they come from, when executing it directly? Why are those lines not output, when executing the journal command by my program? (I know, you don't know my program, so you can assume that it is just goes badly, but actually it has worked in combination with other commands pretty well so far...)</li>
        <li>The first 4 lines are output via stderr, even though only the last one seems to be a real error message. What's the intension to post the first 3 line via stderr? Even though the error message is posted, everything seems fine, since the return value at the end is 0. So, what's going on here? Was the program really executed correctly?</li>
</ul>

<div> </div>

<div>That's all for now...</div>

<div> </div>

<div>Enjoy your day,</div>

<div>Andreas</div>

<div> </div>
</div>
</div>

<div class="signature">-- <br/>
<br/>
Dr. Andreas Krüger<br/>
Claudiusstr. 6<br/>
10557 Berlin<br/>
Mobil:         +49 - 170 - 90 55 075<br/>
EMail:         DrAndreasKrueger@Web.de</div></div></body></html>