Date: 24 Dec 2001 14:26:11 -0000 From: Jan Srzednicki <winfried@ikar.pl> To: FreeBSD-gnats-submit@freebsd.org Subject: conf/33149: small change in /etc/periodic/*/999.local Message-ID: <20011224142611.50906.qmail@spitfire.303.krakow.pl>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011224142611.50906.qmail>
