On Wednesday 05 March 2003 01:21, Timothy wrote:
Hello all. I'm trying to get cron to work. It isn't.
I've created a very simple cron script, to simply run gvim (as an example). When I am done , I see where the new crontab is installed, it is just the command never executes. I've searched for an answer to this, and other than a web page that describes some possilbe errors with formatting, I've found nothing.
You should check your local mailbox. cron has most likely sent you a mail explaining what is going wrong.
This is runnin on a SuSE 8.1 box. Any help?
nicki > crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.24474 installed on Tue Mar 4 19:01:34 2003) # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $) 02 19 * * * gvim
I can see two problems here. First of all you have a very limited $PATH when you run cron jobs, so you should give the full path to the command. In the case of gvim that would be /usr/X11R6/bin/gvim Secondly, you don't have very many environment variables set at all in a cron job, so running graphical programs will fail unless you tell them were to display their windows. If you really want to run the above cron script, do something like 2 19 * * * /usr/X11R6/bin/gvim -display :0.0 Anders