Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use in a loop? #142

Open
scratchermatch opened this issue Mar 5, 2020 · 0 comments
Open

Use in a loop? #142

scratchermatch opened this issue Mar 5, 2020 · 0 comments

Comments

@scratchermatch
Copy link

I have the following command:
for i in 500; do sox -t mp3 /home/pi/x2music/$(ls | shuf -n 1) -t wav - | sudo /home/pi/PiFmRds/src/pi_fm_rds -freq 87 -audio -; done
which selects a random file from my folder and plays it. The problem is, once a single song finishes, the loop stops. I can't do multiple songs without actually being there to run the code. Any idea how I could do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant