[comp.sources.wanted] Program to manage cron entried wanted

peter@radig.UUCP (Peter Radig) (06/21/89)

Hi,

I'm searching for a program which manages cron table entries for 
Sys V.3 in the way that it offers the possibility to coordinate
the cron tables on a system-wide basis. My system always gets quite
a bit overloaded 'cause many users run jobs at the hour or half the
hour.

Did you ever heard of such a tool?

Thanks a lot...

-- 
Peter Radig        Voice: +49 69 746972
                   USENET: peter@radig.UUCP
                       or: uunet!unido!radig!peter

bill@twwells.com (T. William Wells) (06/22/89)

In article <765@radig.UUCP> peter@radig.UUCP (Peter Radig) writes:
: I'm searching for a program which manages cron table entries for
: Sys V.3 in the way that it offers the possibility to coordinate
: the cron tables on a system-wide basis. My system always gets quite
: a bit overloaded 'cause many users run jobs at the hour or half the
: hour.
:
: Did you ever heard of such a tool?

I have this bitty shell script that will display all the jobs in the
cron queue by the minute and then hour that they are to be started.
You will have to delete or replace the last line of the script: it
calls a program scanprt that I have on my system. It does what it
seems to: reads a line using a scanf format and prints it with a
printf format. No, I'm not going to post it: it's old code that I'm
not proud of.

Also, the ^I in the sed script is really a tab character. You'll have
to change that line.

{
	cd /usr/spool/cron/crontabs
	egrep . /dev/null *
} | sed 's/#.*//
	s/:/ /
	s/^I/ /g
	s/  */ /g
	s/ $//
	/ /!d' \
    | sort +1n +2n \
    | scanprt '%s %s %s %[^\n]' '%s\t%s\t%s\t%.50s'

---
Bill                    { uunet | novavax | ankh | sunvice } !twwells!bill
bill@twwells.com