Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 04-02-2007, 10:32 AM   #1 (permalink)
In The Zone
 
Join Date: Jan 2004
Location: Delta Quadrant
Posts: 408
Question Kcron doesn't work


I just wanted to configure Kcron task scheduler so that it would start Azureus at a cetain time. But it doesn't seem to be doing anything.

I right clicked on tasks, clicked on new. Selected everyday & chose the time when I want to run azureus, saved this config, but cron doesn't seem to be launching the program at all. Whats up with this thing?. The program launches perfectly when I right click on it & choose run now . So there isn't any issue with the path. Any suggestions?.


I am using Kubuntu 6.10
__________________
WE ARE THE BORG
YOU WILL BE ASSIMILATED
RESISTANCE IS FUTILE
borg is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 04-02-2007, 01:34 PM   #2 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: Kcron doesn't work

check ur /etc/crontab for the entries u made in kcron.
another utility which i feel is better is gnome-schedule,which u can apt-get install.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 04-02-2007, 01:49 PM   #3 (permalink)
In The Zone
 
Join Date: Jan 2004
Location: Delta Quadrant
Posts: 408
Default Re: Kcron doesn't work

These are the contents of crontab-

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
47 6 * * 7 root test -x /usr/sbin/anacron || run-parts --report /etc/cron.weekly
52 6 1 * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.monthly
#

I can't make any sense of it. No mention of azureus anywhere.

I don't know why this has to be so painful. Task scheduling is such a simple thing.
__________________
WE ARE THE BORG
YOU WILL BE ASSIMILATED
RESISTANCE IS FUTILE
borg is offline  
Old 04-02-2007, 02:14 PM   #4 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: Kcron doesn't work

perhaps kcron's got some other places for config files for cron.try reading man kcron or its help tab or /usr/share/doc/kde? or kcron/ for more info.(not a kde user )
even configuring cron manually is also not that tough yaar.try configuring using crontab -e command.resources are lot available and you will learn something good also na?
crontab -l will list ur cron processes
http://reallylinux.com/docs/basiccron.shtml
http://www.scrounge.org/linux/cron.html
ps:remember you should give the proper path for the executables in crontab file for eg;azureus:
Code:
~$whereis  azureus
azureus: /usr/bin/azureus /usr/X11R6/bin/azureus /usr/bin/X11/azureus /usr/share/man/man1/azureus.1.gz
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 04-02-2007, 03:02 PM   #5 (permalink)
In The Zone
 
Join Date: Jan 2004
Location: Delta Quadrant
Posts: 408
Default Re: Kcron doesn't work

hmmm. Thanks for your help, but is this no way of just getting things done in Linux?.

Learning is not a bad thing, but what if I just want to get my work done?.
Task scheduling is such a basic operation & that Linux requires me to go type some obscure commands, in the command line, to get this simple task done is disappointing to say the least. This is frustrating & disappointing.
__________________
WE ARE THE BORG
YOU WILL BE ASSIMILATED
RESISTANCE IS FUTILE
borg is offline  
Old 04-02-2007, 06:17 PM   #6 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: Kcron doesn't work

also make sure crond started and running
Code:
~$ps   ax |grep crond
Now sorry for that -but Yaar am trying to help, I use only GNOME DE and are happy with gnome-schedule app,if u r in kde also u can apt-get install gnome-schedule.else u can wait for someone using kde and kcron;dont panic!
and even a google linux search can get u a clue na?
i found below one for kcron:
http://linux-blog.org/index.php?/arc...ase-Kcron.html

@eddie:can help you !
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 13-02-2007, 10:22 PM   #7 (permalink)
In The Zone
 
unni's Avatar
 
Join Date: Mar 2006
Location: Thiruvananthapuram (Now in Bengaluru)
Posts: 386
Default 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.
unni is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 10:47 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2