I a teapot in Linux, so svinia for the confusion the wording of the question.
The cough run command
my_process 2>&1 | tee -a log.txt
Ie, stdout, and stderr of the process are saved in a file and are visible on the console.
Should be possible just to do the same, but instead of log.txt send stdout and stderr via the UDP address of the form 126.96.36.199:6800
Thanks in advance to all respondents on the merits.