So I have a Bash script that does a bunch of things, one of them (actually the first one) is blink an LED on a RPi (via Python).
The problem is that when I run the Python script it blocks all other scripts and nothing else runs.
I think that by adding an & it runs in the background but that didn't make any difference when I tried it.
This is what I have:
#!/bin/bash
sudo python /scripts/blink.py blinkRed &
rm test.txt test.bkp
...
So basically everything stops after running the blink.py script.
Any ideas on how I could make it non-blocking, run it on another thread, on the background or something like that?
while(1): ...#!/bin/bash -xto confirm that everything runs as expected (and post the output)