RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    avoid or get rid of messages after scripts were executed

    Scheduled Pinned Locked Moved Help and Support
    runcommandscripthidescreensaverbash
    3 Posts 2 Posters 242 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      didusee
      last edited by

      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! :)

      S 1 Reply Last reply Reply Quote 0
      • S
        sleve_mcdichael @didusee
        last edited by

        @didusee try:

        plasmactl --pattern [name] >/dev/null
        

        ...or

        plasmactl --pattern [name] 2>/dev/null
        

        The first one redirects stdout, the second one stderr.

        D 1 Reply Last reply Reply Quote 2
        • D
          didusee @sleve_mcdichael
          last edited by didusee

          @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

          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          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.