11-12-2020, 02:35 PM
Put the commands in a script file /home/pi/myscript.sh
mpc clear
mpc load Mp3
mpc play
Then specify the script file in the CMD field
/home/pi/myscript.sh
Remember to mark the script file as executable
sudo chmod +x /home/pi/myscript.sh
And put a shebang as the first line
#!/bin/bash
mpc clear
mpc load Mp3
mpc play
Then specify the script file in the CMD field
/home/pi/myscript.sh
Remember to mark the script file as executable
sudo chmod +x /home/pi/myscript.sh
And put a shebang as the first line
#!/bin/bash