Cron handles all scripts
The problem is different.
1. From user or from root account.
You can add a cron list as a user.
But people usually add the cron list as root.
Difference:
If you add as root / administrator the script will run under the root account
If you add from a user account it will run under the user account.
If you want add cron job from root. You can try run script from other user.
2. Launch rights.
Cron has fewer and fewer rights.
Sometimes You have to bring him back.
The script will run. But it can't start windows / applications with windows.
Workaround / Example:
Code: Select all
notify-send 'Boss !!' 'This working'
This will working from terminal. For Cron you need add something.
Example:
export DISPLAY=:0.0 && export XAUTHORITY=/home/USER_NAME/.Xauthority && script
viewtopic.php?f=49&t=331950&p=1900455&h ... b#p1900455
After create Cron task, you can check all Cron tasks
viewtopic.php?p=1973411#p1973411
3. Delay
it tries to run it before the X server is initialized.
It can be true.
You can add delay for task. For example 5 seconds. ( You can add more seconds )
Code: Select all
@reboot sleep 5s && /home/user/script