1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 2087
/ 1 Year ago, sat, may 6, 2023, 8:48:44
I have a Ubuntu 14.04 system that just runs Firefox all day. Now I want to restart Firefox automatically once a day, so I created the following shell script:
#!/bin/sh
killall firefox
sleep 5
killall -9 firefox
sleep 2
/usr/bin/firefox -URL <...>
and set up da cronjob to call the script.
But it doesn't work, I get:
Error: no display specified
When I insert
export DISPLAY=:0
I get
No protocol specified
No protocol specified
Error: cannot open display: :0
What's the correct way to do it?
More From » command-line