convert-to suppress message

I have a script that converts a document to text, and runs grep on that.

Is there a way to suppress the message “convert file.odt → file.txt using filter : Text”? I have tried redirecting stdout and stderr to /dev/null, but that doesn’t seem to work.

converts a document to text, and runs grep on that

something like --cat command line parameter?

I have tried redirecting stdout and stderr to /dev/null, but that doesn’t seem to work.

It should work - but the generic “that doesn’t seem to work” tells nothing about what you experience. Also you didn’t mention your OS, your LO version, script language, and other possibly relevant information.

“Doesn’t seem to work” implies that the text is still printed.
Devuan Linux Beowulf, LibreOffice 6.1.5.2, script language is irrelevant, since I tried to run LibreOffice directly from the command line.

But the “–cat” option seems to be what I want.