avoid or get rid of messages after scripts were executed
-
Hello forum,
I am asking myself how to avoid (or get rid of) certain messages appearing under RetroPie. My system is totally clean from any messages, except for the ones, that are appearing after calling a runcommand-onstartup.sh, which is loading a pattern for my plasma arcade buttons via “plasmactl --pattern [name of the pattern]” and is triggered when loading a rom.
RetroPie is than showing a message “Setting pattern to [name of the pattern]” on a black screen before loading a rom file.
I also have an runcommand-onend.sh that sets back the plasma LEDs to their initial state, and there I also get a message about this: “Setting pattern to default”
Same goes for two calls that i do with onscreensaver-start and onscreensaver-stop.Those messages build up, so that there are several lines showing, which is quiet ugly and annoying.
Any idea on how to avoid such messages?
Thank you very much! :)
-
@didusee try:
plasmactl --pattern [name] >/dev/null
...or
plasmactl --pattern [name] 2>/dev/null
The first one redirects stdout, the second one stderr.
-
@sleve_mcdichael said in avoid or get rid of messages after scripts were executed:
/dev/null
the first one did the trick :)
thank you!!!
i ve been looking for a solution for a long time
and now this made my day
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.