Execute programm on Rasberry, DONT wait for answer
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hey guys, im executing a bash file on my raspberry with that matlab command
system(mypi,'bash ~/spidev/ex.sh')
The bashfile removes some old files and than executes a C-Code. My Problem is that matlab is waiting for the program to finish. I tried this:
system(mypi,'bash ~/spidev/ex.sh &')
but its still waiting. If i enter the same command to the terminal manually, the raspberry doesnt wait for the answer. Any ideas how to send only the command and instantly proceeding with my own matlab-code???
0 commentaires
Réponses (1)
Andrew Bliss
le 13 Juin 2016
I haven't used matlab with a Raspberry, so I'm not familiar with the system syntax you're using (the 'mypi' argument). Can you run something simple like 'dir' or 'ls' and get what you'd expect?
Voir également
Catégories
En savoir plus sur Installation Setup and Configuration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!