0

I need to open the terminal on startup and execute three commands in the same window automatically on my Raspberry 4B. The first is a cd command. The second one is: source /tflite/bin/activate. And the last one is: python program.py. After executing the last one, I need to keep the program running. I've tried solutions from similar threads like: this or this but none of them worked for me. I also tried making an sh file, which executed the commands separately and had some other issues. I've also modified the ~/.config/lxsession/LXDE-pi/autostart file, but it didn't work.

Jan
  • 50
  • 6
  • 1
    [so] is for programming questions, not questions about using or configuring Unix and its utilities. [unix.se] or [raspberrypi.se] would be better places for questions like this. – Barmar Jul 01 '23 at 18:06

0 Answers0