#!/bin/bash # navigate to the directory of the script cd /home/biqu/screw_control/ # activate the python environment, if you're using one # source /path_to_your_venv/bin/activate # run the script /usr/bin/python3 mqtt_listener.py