Open gnome-terminal as a cron job

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm tryng to run a cron job that will open a terminal.  The following
is my user crontab (from crontab -e)


SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=Dylan
HOME=/
DISPLAY=:0

15 0-23 * * * gnome-terminal


A terminal never opens, and I get the following error in
/var/spool/mail/root (shouldn't it be in .../mail/Dylan??)

<snip>

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(gnome-terminal:3016): Gtk-WARNING **: cannot open display:

--k9H4T1iI003017.1161059341/localhost.localdomain--


--k9H4T1iJ003017.1161059341/localhost.localdomain--

Google wasn't too much help, as these Xlib errors seem to be quite
common.  So how does one run an X application from cron?

--
Dylan

Type faster.  Use Dvorak:
http://dvzine.org


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux