from linux, specifically from a raspberry pi, i am trying to start a program in the background, take the output of this program and according to the output pass to the backg