Koozali.org: home of the SME Server

Cant get Crontab Manager to work

Offline steve288

  • *
  • 336
  • +0/-0
Cant get Crontab Manager to work
« on: May 13, 2009, 09:25:17 PM »
Some time ago I installed the crontab manager 1.2-4
But it doesnt seem to be working for me. As a test I'm having it run the following every minute,

date >> /root/bin/tout.tmp
echo "------------------------" >> /root/bin/tout.tmp

But nothing shows up in the file.

I have it set to run every minute * every hour * every day etc.  I like the interface because it allows anyone who goes into the manager to see whats running. (Although I dont find it exactly straight forward in selecting the schedule.)

I have read some posts on it but could not find any information that was helpful. The jobs appear to be running as root in the gui (which is fine) but when I type crontab -e -u root there is nothing there. Also when I look at /var/log/cron I dont see any of the jobs that I created being run. Others are that the system runs.

I know that I could manually run the jobs but as I said I like having the gui that every one can see and use.
Does this contrib truly work or is there some else I need to do to get it working.

Thanks.



Offline veebr0

  • ***
  • 61
  • +0/-0
Re: Cant get Crontab Manager to work
« Reply #1 on: June 05, 2009, 06:18:32 PM »
I have the same problem too, appear exist some issues in crontab manager, when I configure it, all appear that is OK,  but if you run the following command :crontab -l  the message show the following:no crontab for root

I was trying to solve the problem following the recommendation posted in the forum, but the problem still persist
http://forums.contribs.org/index.php?topic=29433.0

Please if some one  have more information, please replay to us.

Thanks in advance,
Eviny

Offline veebr0

  • ***
  • 61
  • +0/-0
Re: Cant get Crontab Manager to work
« Reply #2 on: June 09, 2009, 05:09:39 PM »
Friend, after some tests I found the following solution, just follow-up the steps bellow:

1.- Modify or add the new crontab command in to the Crontab Manager

2.- Run the following command into the SME console:
[root@server ~]# /sbin/e-smith/expand-template etc/crontab

4.- Validate if the the command is already inserted into the main crontab file
[root@server ~]# pico /etc/crontab

Note:Browse into the file in order to find the crontab that you previously inserted

3.- Restart the crond service
[root@server ~]# /etc/init.d/crond restart

If you want to check if the crontab is running you can use the following command:

[root@server ~]# tail -f /var/log/cron

or

[root@server ~]# tail -f /var/log/messages

P.S. As an example create a crontab that need to run every minute, every hour, every day of month, every month and every day of week, so in  the crontab file will appear a line like this:

* * * * * root echo "------------------------" >> /root/bin/tout.tmp

Best Regards.
Eviny

Offline steve288

  • *
  • 336
  • +0/-0
Re: Cant get Crontab Manager to work
« Reply #3 on: July 06, 2009, 09:47:27 PM »
Thanks for your input.
Your informaion looks right on running cron jobs by hand. However It doesnt really answer the problem that is, that the crontab manager 1.2-4 interface from the administraton http doesnt seem to work.

Regards


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Cant get Crontab Manager to work
« Reply #4 on: July 07, 2009, 07:54:02 AM »
steve288

Problems with contribs are best addressed to bugzilla and/or to the contrib author.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.