Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!indri!uflorida!novavax!twwells!bill From: bill@twwells.com (T. William Wells) Newsgroups: comp.sources.wanted Subject: Re: Program to manage cron entried wanted Message-ID: <1989Jun22.054103.1020@twwells.com> Date: 22 Jun 89 05:41:03 GMT References: <765@radig.UUCP> Organization: None, Ft. Lauderdale, FL Lines: 35 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