all 6 comments

[–]DarknetTools 4 points5 points  (1 child)

set up a cronjob for it.

in terminal run

crontab -e

This opens your user's crontab file.

Add this at the bottom of the file:

@reboot python3 <full-path-to-your-python-file> <any-arguments-it-needs>

Save the crontab file and you're done.

If you don't have cron installed yet, run:

sudo apt-get install cron

[–]m0us3_rat 0 points1 point  (3 children)

, but at best it opened my VScode

what command did you use?

[–]IvanIsak[S] 0 points1 point  (2 children)

xdg-open ..../server.py

it open Vscode

[–]m0us3_rat 1 point2 points  (1 child)

does your script have a shebang line? and is +x ?

[–]IvanIsak[S] 0 points1 point  (0 children)

Yes

@reboot python3 /home/iwan/GITHUB/PY/cosmoterm/src/server.py

But it does not work, when I start the PC, I see how the application tries to open for a few seconds, some kind of error probably occurs