Re: Analog_Bridge not outputting to STDOUT or STDERR?


Steve N4IRS
 

Matt,

I just ran a quick test on a RPi.

./Analog_Bridge Analog_Bridge.ini >stdout.log 2>stderror.log

root@dvswitch-server:/opt/Analog_Bridge# more stdout.log
I: 2020-09-11 22:52:09.963 Analog_Bridge Version 1.5.9 Fri  4 Sep 22:56:26 UTC 2020
I: 2020-09-11 22:52:09.964 Copyright (C) 2018, 2019, 2020 DVSwitch, INAD.
I: 2020-09-11 22:52:09.964 Created by Mike N4IRR and Steve N4IRS
I: 2020-09-11 22:52:09.964 Analog_Bridge comes with ABSOLUTELY NO WARRANTY
I: 2020-09-11 22:52:09.964
I: 2020-09-11 22:52:09.964 This software is for use on amateur radio networks only,
I: 2020-09-11 22:52:09.964 it is to be used for educational purposes only. Its use on
I: 2020-09-11 22:52:09.964 commercial networks is strictly prohibited.
I: 2020-09-11 22:52:09.964
I: 2020-09-11 22:52:09.964 Analog_Bridge is starting
M: 2020-09-11 22:52:09.965 Setting [MACROS] DMR -> /opt/MMDVM_Bridge/dvswitch.sh mode DMR
M: 2020-09-11 22:52:09.965 Setting [MACROS] DSTAR -> /opt/MMDVM_Bridge/dvswitch.sh mode DSTAR

root@dvswitch-server:/opt/Analog_Bridge# more stderr.log
more: stat of stderr.log failed: No such file or directory
root@dvswitch-server:/opt/Analog_Bridge# more stderror.log
Project 25 IMBE Encoder/Decoder Fixed-Point implementation
Developed by Pavel Yazev E-mail: pyazev@...
Version 1.0 (c) Copyright 2009
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see the file ``LICENSE'' for details.

For stdout.log I did not include the complete output.

Steve N4IRS

On 9/11/20 6:40 PM, Matthew 2E0SIP wrote:
Hi All,

I am trying to run MMDVM_Bridge, Analog_Bridge etc in Docker to make my bridge a little more portable. If I actually get it working nicely I'll endeavour make it public.

By default docker writes the output to STDOUT and STDERR to the log, however with Analog_Bridge most of the output is missing. I've tried redirecting STD* to no avail. Please see the attached image - only the lines in red (STDERR) are included in the Docker logs.

I've done some googling and one theory is the process is writing directly to the TTY rather than STDOUT / STDERR

When someone gets a moment could they take a look at the code and confirm how these lines are being displayed?

Also whilst I'm here I was wondering if you could confirm if Analog_Bridge, MMDVM_Bridge etc support DNS? 

Thanks
Matthew
2E0SIP


Join main@DVSwitch.groups.io to automatically receive all group messages.