1 year ago

#338788

test-img

FarhanAvro

How to run both Python scripts since the startup, launched from bash script on Raspberry Pi?

A pair of my Python scripts are,
pyserial.py
predict.py

My bash.sh looks like :

#!/bin/sh 
python3 path/pyserial.py & 
python3 path/predict.py &

To run the bash on startup I edited crontab as,
@reboot sh path/bash.sh &

But on startup, only pyserial.py runs. Surprisingly, if I run the bash script using terminal as,
sh path/bash.sh
then both run. But on startup only the pyserial.py runs. What can I do ?

python

linux

bash

raspberry-pi

concurrent-processing

0 Answers

Your Answer

Accepted video resources