Cron xdotool doesn't run
问题 I am new to using crontab, and I've been trying to get a simple cron job. I want press F5 every 1 minute to refresh Mozzila Firefox. I am using xdotool for press F5. I have script /usr/local/bin/refresh.sh: #!/bin/bash xdotool search --name "Mozilla Firefox" key F5 If i run it in command line it works fine. And permission: -rwxr-xr-x. 1 root root 89 15. čec 10.32 refresh.sh In crontab i have: */1 * * * * cd /usr/local/bin && sh refresh.sh But script run by cron doesnt work. Can anyone tell me