Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: GPIO Config
#2
Multiple commands need to be in an executable script.

Example:

cd ~
sudo nano ./test_script.sh

test_script.sh
Code:
#!/bin/bash
mpc stop && mpc clear && mpc load Favorites && mpc play

sudo chmod +x ./test_script.sh

Then specify the full path to the script as the CMD in GPIO Config.

/home/pi/test_script.sh
Reply


Messages In This Thread
GPIO Config - by owagott - 08-26-2019, 06:50 PM
RE: GPIO Config - by Tim Curtis - 08-26-2019, 07:12 PM
RE: GPIO Config - by owagott - 08-31-2019, 01:59 PM
RE: GPIO Config - by Tim Curtis - 08-31-2019, 02:01 PM

Forum Jump: