[solved] dwg2svg: Conversion not silent

Hello
I have little “big” problem:
Use dwg2svg tools with batch file(SH) to convert MANY files DXF to SVG. :cry:

Environment: Server linux centos 7

Command loop execute:
./dwg2svg -platform offscreen -g -no-show -recompute-dim -x 4096 -y 2160 -outfile=“${filenameSVG}” -force -s 1:1 -c 10 -preserve-geometry -inkscape -unit=mm “${file}”
(These setups derive from many conversion tests done on dxf drawings that I have as examples from the design and modeling department)

Problem : print debug info :open_mouth:
Solved: add Before command export QT_LOGGING_RULES=“*.debug=false;driver.usb.debug=true”

But another problem
tool print to video info conversion:
"QCAD version 3.22.1

Options:
Unit : mm
Inkscape Tags : true
…etc etc"
DAMN! OUCH! :cry: :unamused: Why?
I thought that was enough "./dwg2svg -platform offscreen "!!!
Since I have to convert many files I would like to have the stdout empty and print only the number of converted files through the script.
Isn’t there a silent mode for the tools?
Is there a trick (like I did for the debug info QT_LOGGING_RULES) to insert to have no info on the screen?


Thanks!

Your system has you covered. Simply stream all output of dwg2svg to /dev/null:

./dwg2svg ..... &>/dev/null

See also:
https://www.linuxshelltips.com/redirect-output-to-dev-null-in-linux/

Often you look at the mountain to climb it and you don’t see where you put your feet on the road!
I wanted to setup qcad and was blind to the solution!
Thank you for bringing me back to planet earth! :smiley: :smiley: