Announcement

Collapse
No announcement yet.

fr24feed-status color output

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • fr24feed-status color output

    Hello

    Is there a way to disable color output of fr24feed-status ?

    I made a little script to monitor my feeder and Raspbian grep does not like colors...

    Thanks

  • #2
    what command are you running exactly?

    fr24feed-status | cat

    gets rid of the colors (and ok in front).
    That probably happens everytime it detects that it is connected to a pipe and not a terminal.

    Comment


    • #3
      Actually i get the impression your actual problem might be that fr24feed-status behaves differently when connected to a pipe.
      To get the normal output you can use this:

      script --return -c "fr24feed-status" /dev/null | grep Link

      So it greps just fine on the colored output.

      Comment


      • #4
        Originally posted by wiedehopf View Post
        Actually i get the impression your actual problem might be that fr24feed-status behaves differently when connected to a pipe.
        To get the normal output you can use this:

        script --return -c "fr24feed-status" /dev/null | grep Link

        So it greps just fine on the colored output.
        Very smart command indeed !
        It does the trick perfectly !

        Thanks

        Comment

        Working...
        X