Hey all, I've been playing around with the psionic logsentry program and I made both src and binary rpm's to run on SuSE 7.2. What I'm wondering though is the best way to automate the execution of the program at certain times. What I've come up with is the following within rc.config # # psionic logsentry settings # # should logsentry be started? (yes/no) START_LOGCHECK="yes" # # at which intervals should logsentry be run? # ie: (hourly/daily/weekly/monthly) LOGCHECK_TIME="daily" I then created an execution script in each of the cron folders located in /etc, that check the variables within rc.config and execute according to the setting specified. In otherwords, if you told it hourly, then the script in cron.hourly would be the only one executed, if daily is chosen then only the crond.daily would be executed, etc.. #!/bin/sh # # # logcheck. This script will run psionic logcheck at specified time # based on variables set within rc.config. # # Copyright (c) 2001-2002 S.Toms <smotrs@mindspring.com> # # please send bugfixes or comments to smotrs@mindspring.com. # # Author: S.Toms <smotrs@mindspring.com>, 2001 # # # paranoia settings # umask 022 PATH=/sbin:/bin:/usr/sbin:/usr/bin export PATH # # get information from /etc/rc.config # if [ -f /etc/rc.config ] ; then . /etc/rc.config fi # # check to see if logcheck should be activated # test "$START_LOGCHECK" = yes || exit 0 test "$LOGCHECK_TIME" = daily || exit 0 LOGCHECK=/usr/sbin/logcheck.sh # # check that logcheck exists and execute # if [ -x "$LOGCHECK" ] ; then $LOGCHECK fi exit 0 What I'm wondering is, is there a better way, a nicer way, a more convenient way to do this that can be controlled fron rc.config? -- S.Toms - smotrs@mindspring.com - www.mindspring.com/~smotrs SuSE Linux v6.3 - Kernel 2.2.14 In Lexington, Kentucky, it's illegal to carry an ice cream cone in your pocket.