Thursday, May 2, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 555  / 2 Years ago, tue, june 7, 2022, 1:53:50

I ran dolphin like this:



dolphin . &


I see messages in the console like these:



QPixmap::scaled: Pixmap is a null pixmap


How can I keep the console clean or silent?


More From » command-line

 Answers
7

You can redirect the output to a file or to nowhere.



Using output redirection > you can redirect stdout and/or stderr away from the terminal.



To redirect stdout and stderr to a file use &> log.txt.



If you just want output to go way use &> /dev/null.



So you new command would be dolphin . &> /dev/null &



&> redirects all output



use > or 1> to redirect stdout only



use 2> to redirect stderr only



Note: if you want to append to a file rather than overwrite it use >> in place of >.


[#24789] Wednesday, June 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
weamp

Total Points: 197
Total Questions: 115
Total Answers: 92

Location: Mauritania
Member since Sun, May 7, 2023
1 Year ago
;