From owner-freebsd-questions Wed Apr 24 7:25:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from soulshock.mail.pas.earthlink.net (soulshock.mail.pas.earthlink.net [207.217.120.130]) by hub.freebsd.org (Postfix) with ESMTP id 6875437B405 for ; Wed, 24 Apr 2002 07:25:26 -0700 (PDT) Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by soulshock.mail.pas.earthlink.net (8.11.6+Sun/8.11.6) with ESMTP id g3OEBq807353 for ; Wed, 24 Apr 2002 07:11:52 -0700 (PDT) Received: from user-119aekg.biz.mindspring.com ([66.149.58.144] helo=ns.flncs.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 170NUX-00071s-00 for freebsd-questions@freebsd.org; Wed, 24 Apr 2002 07:11:29 -0700 Received: from mlevy (unknown [12.27.148.78]) by ns.flncs.com (Postfix) with SMTP id E6D90529E for ; Wed, 24 Apr 2002 10:14:43 -0400 (EDT) Message-ID: <019701c1eb9a$34598ee0$fd6e34c6@mlevy> From: "Moti" To: Subject: question about periodic ... Date: Wed, 24 Apr 2002 10:13:21 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi , I'm having a hard time grasping periodic ...( i'm slllllllllllloooooowwww , sorry ) i want to run tripwire check as part of my daily periodic. i created a script called 998.tripwire premissions -> [root@Mail2:daily>>ls -la 998.tripwire -rwxr-xr-x 1 root wheel 238 Apr 24 10:10 998.tripwire ---> script itself [root@Mail2:daily>>cat 998.tripwire #!/bin/sh # If there is a global system configuration file, suck it in. # if [ -r /etc/defaults/periodic.conf ] then . /etc/defaults/periodic.conf source_periodic_confs fi echo "checking tripwire:" /usr/local/sbin/tripwire -m c if i run ./998.tripwire it works , but i do not see it in my daily report , i tried adding a "touch /var/run/tripwire-run-on-`date" statement just to see if the script runs and i only get no output but this did not work . so the questions are : 1.what;s the proper way of adding a script to periodic/daily ? 2.how to make the output go into the email mailed to you ? i know i can use cron to run these but i really want to run tripwire and pflogsumm daily and i would love it to be in the same email as my daily report thanks Moti To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message