Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: MasterSleepy on October 14, 2004, 10:07:36 AM

Title: [contrib] Crontab manager
Post by: MasterSleepy 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 (http://www.vanhees.cc/modules.php?op=modload&name=Downloads&file=index&req=viewsdownload)

Regards.
Title: [contrib] Crontab manager
Post by: BobWilliams 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...
Title: [contrib] Crontab manager
Post by: MasterSleepy 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.
Title: [contrib] Crontab manager
Post by: Henk 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]#
Title: [contrib] Crontab manager
Post by: funkusmunkus on October 15, 2004, 08:52:53 AM
I have the same error message when i tried uninstalling it as well.
Title: [contrib] Crontab manager
Post by: MasterSleepy 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.
Title: [contrib] Crontab manager
Post by: Henk on October 15, 2004, 09:13:29 AM
Thanks Mastersleepy. This did solve the problem. Will start testing this contrib soon. Looks great!
Title: [contrib] Crontab manager
Post by: MasterSleepy 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.
Title: [contrib] Crontab manager
Post by: RavenIV 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
Title: [contrib] Crontab manager
Post by: MasterSleepy 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.
Title: [contrib] Crontab manager
Post by: slang 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 -
Title: [contrib] Crontab manager
Post by: MasterSleepy 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.
Title: [contrib] Crontab manager
Post by: slang 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 -
Title: [contrib] Crontab manager
Post by: markehle 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
Title: [contrib] Crontab manager
Post by: RonM 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.
Title: [contrib] Crontab manager
Post by: jpeters on October 25, 2004, 01:10:21 AM
Great job MasterSleepy!

Question for anyone who can help me. Via the crontab manager I had setup pandasoft antivirus scan to run every hour per day, week, month etc, (just to test) but it doesn't seem to work.

Here is my crontab:

cat /etc/crontab

1 * * * * root /usr/bin/pavcl / -aut -heu -aex

The /usr/bin/pavcl / -aut -heu -aex command does work from the consol as root.

I'm not sure if this helps but crontab -l produces the following:

no crontab for root

Am I missing something to run this? The pavcl file is executible, ownerhip is root etc.

Thank you kindly in advance, this is a great forum community.

Jpeters


Update: I found a remedy by having crontab run a script to have panda AV scan my drives instead of a command itself. Also, the cron log showed that the proggy was running at the prescribed times etc.

!S
Title: [contrib] Crontab manager
Post by: RavenIV on October 25, 2004, 03:01:26 AM
great contrib.

but i have one question:
why does the contrib not explore the existing entries in crontab?
on my sytem there are already some entries (logrotate, virus-scanner update, backup, ...) that are not listed in the contrib.

cheers
Title: Re: [contrib] Crontab manager
Post by: william_syd on July 01, 2005, 04:19:36 PM
Quote from: "MasterSleepy"
Hello,

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

You can find it here (http://www.vanhees.cc/modules.php?op=modload&name=Downloads&file=index&req=viewsdownload)

Regards.


I'm unable to download this RPM. Is it kept anywhere else ?

Regards,
William.
Title: [contrib] Crontab manager
Post by: william_syd on July 02, 2005, 04:11:16 PM
One day later and the sites back up.... yippee.
Title: [contrib] Crontab manager
Post by: pbozz on September 27, 2005, 06:10:13 AM
Great job.  
Any help on how to make is for days 2-6 only?
example in my old crontab
00 03 * * 2-6 /home/scripttorun
Title: Congratulations!!
Post by: IceDizzy on December 26, 2005, 11:30:15 AM
Nice job!! Crontab manager works "just out of the box" on my SME 6.5
Tried to figure out why an ordinary job added with crontab -e doesn´t work as root.
Then while searching i saw your rpm and tested it.
Still don't know why crontab -e jobs doesent work with SME.
Anyone have a clue regarding crontab -e added jobs?

/Ice
Title: SME7 Beta 9 and Cron manager
Post by: brianscally on January 17, 2006, 06:32:42 PM
Tried to do an install... just to see if it would installl and it would not.

I think that this is an excellent utility that I would like to see installed on my Server.

Brian