I'm experimenting trying to run some shell scripts and python scripts on my raspberry pi 3.
i'am working with a UI application.
I've followed several threads i've found in the forums but have not been able to get anything working.
For example i have the following code and while i don't get any errors or get any crashes, I can also see the ProcessCompleted sub completing with a success flag but i don't see anything at the output (stdOut).
The python scripts basically begins a scan for BLE devices and outputs the device names and Mac-Addresses along with each device's signal strength continously, I know the script works because if I execute it directly from the command line in my raspberry pi i can see all the nearby devices being printed in the console.
Is there anything i may be missing, sometimes i also get a pop up window with the error: "Child process could not be started" but i believe this is a different issue.
All i need to be able to do is execute the python script and be able to read the output in the processcompleted function.
Hope someone can point me in the right direction.
Thanks,
Walter
i'am working with a UI application.
I've followed several threads i've found in the forums but have not been able to get anything working.
For example i have the following code and while i don't get any errors or get any crashes, I can also see the ProcessCompleted sub completing with a success flag but i don't see anything at the output (stdOut).
B4X:
sh.Initialize("sh", "python", Array As String("./ble_log.py")
sh.WorkingDirectory = "/home/pi/nrf_shell/input_stream/" 'path where ble_log.py file is located
sh.Run(-1)
The python scripts basically begins a scan for BLE devices and outputs the device names and Mac-Addresses along with each device's signal strength continously, I know the script works because if I execute it directly from the command line in my raspberry pi i can see all the nearby devices being printed in the console.
Is there anything i may be missing, sometimes i also get a pop up window with the error: "Child process could not be started" but i believe this is a different issue.
All i need to be able to do is execute the python script and be able to read the output in the processcompleted function.
Hope someone can point me in the right direction.
Thanks,
Walter