From owner-freebsd-bugs Mon Dec 24 6:30:18 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 942EF37B421 for ; Mon, 24 Dec 2001 06:30:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBOEU2A49589; Mon, 24 Dec 2001 06:30:02 -0800 (PST) (envelope-from gnats) Received: from spitfire.303.krakow.pl (spitfire.303.krakow.pl [62.233.162.193]) by hub.freebsd.org (Postfix) with SMTP id 2885537B416 for ; Mon, 24 Dec 2001 06:26:19 -0800 (PST) Received: (qmail 50907 invoked by uid 0); 24 Dec 2001 14:26:11 -0000 Message-Id: <20011224142611.50906.qmail@spitfire.303.krakow.pl> Date: 24 Dec 2001 14:26:11 -0000 From: Jan Srzednicki To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: conf/33149: small change in /etc/periodic/*/999.local Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 33149 >Category: conf >Synopsis: small change in /etc/periodic/*/999.local >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Dec 24 06:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Jan Srzednicki >Release: FreeBSD 4.4-STABLE i386 >Organization: MPS, Krakow, Poland >Environment: System: FreeBSD ikar.pl 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 25 18:07:30 CEST 2001 root@ikar.pl:/usr/obj/usr/src/sys/DEDAL i386 >Description: The /etc/periodic/*/999.local script will only allow to run a sh script. Suerly you can put other scripts in cron, but I think it would be nice to have such scripts run via periodic.conf (and receive daily reports from in one mail). >How-To-Repeat: Try to use anything other than a sh script in there. >Fix: Here's a simple diff: root@ikar:/etc/periodic/daily# diff -uN 999.local.old 999.local --- 999.local.old Wed Aug 1 22:38:03 2001 +++ 999.local Mon Dec 24 15:04:59 2001 @@ -20,8 +20,10 @@ echo '' case "$script" in /*) - if [ -f "$script" ] - then + if [ -x "$script" ]; then + echo "Running $script:" + $script || rc=3 + elif [ -f "$script" ]; then echo "Running $script:" sh $script || rc=3 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message