I'd like to launch Firefox from cron in a CentOS 6.8 virtual desktop environment, but I'm not sure if it's successful, so please let me know.
First of all, the cron itself is working well, and when I registered the command to create the file as a trial, it was working.
So I registered the command to open Firefox, but Firefox doesn't start up on the desktop even when it's running time.
On the console, run the following command to open the browser:
firefox-p kaikaimon-url https://example.com
If you set cron to the following, the browser will not open.
3022**firefox-p kaikaimon-url https://example.com
On the console, run the following command to open the browser:
firefox-p kaikaimon-url https://example.com
If you set cron to the following, the browser will not open.
3022**firefox-p kaikaimon-url https://example.com
Does this mean that the browser is open behind the scenes?
As far as the log shows, it appears to be working.
I would appreciate it if you could let me know.
Try starting Firefox by setting the environment variable DISPLAY as well.
3022**export DISPLAY=:0&firefox...
https://askubuntu.com/questions/780337/how-to-open-an-url-in-firefox-via-cron-cron-jobs-scheduling
© 2024 OneMinuteCode. All rights reserved.