Koozali.org: home of the SME Server

[contrib] Crontab manager

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
[contrib] Crontab manager
« on: October 14, 2004, 10:07:36 AM »
Hello,

I've just finished a contrib to manage crontab using a panel in the server-manager.

You can find it here

Regards.

BobWilliams

[contrib] Crontab manager
« Reply #1 on: October 14, 2004, 09:59:42 PM »
Execellent job Michel. I have downloaded and installed your Crontab Manager contrib on SME 6.0.1-01 using the Special Custom SME distribution found on this forum. It works great just what I/we needed. Just one little thing, in the panel "day of week" entry check the spelling of Saturday. (Saterday) I don't know if makes any difference but just wanted to let you know.
Thanks for your efforts. I'll keep testing and let you know how I make out. Looks great so far.

regards,
Bob...

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
[contrib] Crontab manager
« Reply #2 on: October 15, 2004, 08:28:03 AM »
Thanks for the feedback.

A new version is available at the same url.
It will correct "Saturday" and a problem with the installation.

To update remove old crontibs first  :idea:

regards.

Henk

[contrib] Crontab manager
« Reply #3 on: October 15, 2004, 08:50:43 AM »
I cannot uninstall sme-crontab_manager-0.1-1. Seems you've made a typo in the expand template instruction. Any idea how to solve this?

[root@qs2 root]# rpm -e sme-crontab_manager
/var/tmp/rpm-tmp.32721: /sbin/e-msith/expand-template: No such file or directory
error: execution of %preun scriptlet from sme-crontab_manager-0.1-1 failed, exit status 127
[root@qs2 root]#

Offline funkusmunkus

  • *
  • 220
  • +0/-0
[contrib] Crontab manager
« Reply #4 on: October 15, 2004, 08:52:53 AM »
I have the same error message when i tried uninstalling it as well.
.........

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
[contrib] Crontab manager
« Reply #5 on: October 15, 2004, 09:06:59 AM »
Try with that command

Code: [Select]

rpm -e --noscripts sme-crontab_manager-0.1-2  
/sbin/e-smith/db configuration delete cronmanager
/sbin/e-smith/expand-template /etc/crontab


That should solve the problem.

Regards.

Henk

[contrib] Crontab manager
« Reply #6 on: October 15, 2004, 09:13:29 AM »
Thanks Mastersleepy. This did solve the problem. Will start testing this contrib soon. Looks great!

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
[contrib] Crontab manager
« Reply #7 on: October 18, 2004, 11:09:00 AM »
Hi all,

A new version is now available, 1.0-1.
Major change is the ability to select the user that run the command.

NOTE : To install this new contrib, please remove the old one. All entry will be erase  :idea:  :idea:

Regards.

RavenIV

[contrib] Crontab manager
« Reply #8 on: October 19, 2004, 01:42:16 AM »
what else do you plan to include in your contrib?
i don't like to install a new version every second day...

cheers

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
[contrib] Crontab manager
« Reply #9 on: October 19, 2004, 06:17:48 AM »
That's the last modification I've included.
Except a bug correction, no new version are planned.

Regards.

slang

[contrib] Crontab manager
« Reply #10 on: October 24, 2004, 12:44:23 AM »
Hi MasterSleepy.

Congrats on a great contrib - just what I was looking for, but didn't know it...

Quote from: "MasterSleepy"
That's the last modification I've included.
Except a bug correction, no new version are planned.

Regards.


Can I suggest an enhancement:
1) Ability to specify less granular intervals. E.g.. */5 in the minutes column is every 5 minutes. I often use every 5 minutes, but can't find a way in your contrib to do so.

Cheers -

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
[contrib] Crontab manager
« Reply #11 on: October 24, 2004, 09:10:37 AM »
Hello,

To make a task run every 5 min you have to select in the first menu list '5' and the second menulist select 'YES'.

Regards.

slang

[contrib] Crontab manager
« Reply #12 on: October 24, 2004, 09:35:17 AM »
Ahhh, indeed that does exactly what I want. Thank you!

One other suggestion that I thought of. How about an 'enabled' column, where we can uncheck the 'enable' button, and it comments out the line in crontab. Occasionally I need to temporarily disable a service, then re-enable it later on.

Cheers -

Offline markehle

  • ***
  • 125
  • +0/-0
[contrib] Crontab manager
« Reply #13 on: October 24, 2004, 02:40:46 PM »
Great Job! I asked on this forum a few weeks back about this very thing, and you made it happen. Wonderful!

You can come out with as many new versions/bug fixes as often as you like!

Mark

RonM

[contrib] Crontab manager
« Reply #14 on: October 24, 2004, 07:40:57 PM »
Great job - looks good! If I get a chance this week, I'm going to tie it in with my McAfee file system scans - you can always edit crontab/10runparts, or whatever, (of the templates for cron), but it'll be great to be able to see them all in one list, and not have to try to re-figure out what effects what every 6 months or so, when I need to make some tweak somewhere.