How do I get a gnome-terminal window to open from a crontab?
I have tried this:
* * * * * /usr/bin/gnome-terminal
* * * * * source /home/user_name/.bashrc ; /usr/bin/gnome-terminal
* * * * * source /home/user_name/.profile ; /usr/bin/gnome-terminal
* * * * * source /home/user_name/.bashrc ; /home/user_name/bin/opengnometerminal.sh
None of these seem to work.
Best Answer
You can't, safely. cron jobs run independent of the desktop session where X is running, therefore you can't do this without causing security violations.