On 2023-05-02 13:07, Per Jessen wrote:
Carlos E. R. wrote:
On 2023-05-02 08:22, Per Jessen wrote:
Carlos E. R. wrote:
On 2023-05-01 15:30, Per Jessen wrote:
xmllint your.xml.file
It just prints my file back.
Good. That means it found no problem in that file.
What does it do when there is a problem?
If you had introduced an error and tried it, you would have had an answer in seconds :-)
The answer is - it complains.
I mean, is it obvious to see? Don't I have to go up a kilometre of print to see it up there, out of sight? I would expect to see just a message like "good" or "bad", a single line. With all that print, I can not put it in my CLI:
Telcontar:/etc/firewalld # firewall-cmd --check-config && firewall-offline-cmd --check-config && firewall-cmd --reload && tail -n 100 /var/log/firewalld | grep `date -u +"%Y-%m-%d-%H"` success WARNING: 'NoneType' object has no attribute 'check': None WARNING: 'NoneType' object has no attribute 'check': None success Telcontar:/etc/firewalld #
# xmllint zones/external.xml just prints the file and I can't know where is the line that produces that warning. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)