Re: Kcron doesn't work
I am using Mandriva 2007, and in my system, if I tell KCron to start a program at a certain time, nothing happens. After some searching, I found out the problem. Append the following in the Program field before the actual command: DISPLAY=unix:0 . For example, to start xmms - DISPLAY=unix:0 xmms or DISPLAY=unix:0 /usr/bin/xmms. Also, when you are running KCron for the first time as a normal user, your name should be present in the cron.allow file. The file path is /etc/cron.allow. If the file is not there, launch terminal, su, type kedit /etc/cron.allow and add your username and save it. Now run KCron, and it will work properly.This DISPLAY=unix:0 entry is to be added only for those programs having GUI. The cron file for the user will be at /var/spool/cron/user. This information is true for Mandriva. I don't about other distros. I hope this will be useful to you in case you haven't found out what's wrong yet.
Since KCron allows scheduling only in multiples of 5 minutes, if you want to set an in between time such as 02:07 am, you will have to use crontab -e as mentioned above.
If you type mail in a terminal, you can see messages send by cron. It will give you clues about what went wrong in case things don't work for you still.
Last edited by unni; 13-02-2007 at 10:30 PM.
|