Open gnome-terminal as a cron job

Dylan Semler dylan.semler at gmail.com
Tue Oct 17 04:35:26 UTC 2006


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




More information about the fedora-list mailing list