Closed Davidgo123 closed 2 years ago
: cannot connect to X server
This message shows:
The problem could probably be solved by adding some delay before starting the script.
thanks for edit and help!
I testet with delay of 1 min in Crontab and direkt in the python script, but got the same error message ... Any other ideas...?
solved the Problem:
Used crontab -e
insteed of sudo crontab -e
.
And specify Display in Crontab:
@reboot sleep 10 && export DISPLAY=:0 && /home/david/Bachelorarbeit/tensorrt/autostart_BA.sh >/home/david/Bachelorarbeit/tensorrt/BA.log 2>&1
Hello,
has anyone a Idea, why i get this Error? When i start the Script Manuell in the shell, it works...
Command in Crontab:
Script for startup:
Error Message: