WickedPenguin wrote:Can you please show your shell script? Its a little hard to determine what exactly you are trying to do.
Code: Select all
pianobar
#i need some way to have the button 14 pressed to start my station once pianobar started
14
#I want this line belew to run at the same time as pianobar with out closing pianobar
python weather2.pyAssuming "pianobar" is a command-line program with sensible input standards, try the following:apples723 wrote:WickedPenguin wrote:Can you please show your shell script? Its a little hard to determine what exactly you are trying to do.Code: Select all
pianobar #i need some way to have the button 14 pressed to start my station once pianobar started 14 #I want this line belew to run at the same time as pianobar with out closing pianobar python weather2.py
Code: Select all
# The 'echo "14" |' feeds the text "14" to pianobar's standard input for pianobar to see when it starts running, while the ampersand means "run this in the background"
echo "14" |pianobar &
# And now that the shell script is no longer waiting for pianobar to finish, we can run your python script:
python weather2.py