raspberry pi linux command hang
2 views (last 30 days)
Hi, I am interfacing Matlab with an r pi to send over a command to run a python script.
The code is supposed to run for a certain amount of time, but I was looking for a way to have this not hang for return/terminate from linux.
Is there a way to achieve this?
Puru Kathuria on 25 Feb 2021
Edited: Puru Kathuria on 25 Feb 2021
I hope the raspberry pi support package has been installed and a connection has been initiated from MATLAB to Raspberry Pi.
Next, You might want to try one of these ways:
%for executing python script
system(raspberryPiObject, 'python SRC_DIR/scriptName.py');
%for running python script in background
system(raspberryPiObject, 'python SRC_DIR/scriptName.py &');