Kindly refer to my problem at: crontab @reboot starting an UI Application
I tried to use sleep in my script. It won't work.
May I know how can I wait for X to start before running my crontab?
Many thanks in advance.
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
In my message there is a link to my original question, because someone pointed to me that it is crontab issue, that is why I ask here.
Anyway, I have found the answer.
Instead of using "sudo crontab -e"
I just have to use "crontab -e" (without sudo).
The crontab for a user pi runs after X. while crontab for sudo runs before it.