From owner-freebsd-questions@FreeBSD.ORG Tue Dec 18 00:46:31 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0984E16A41A for ; Tue, 18 Dec 2007 00:46:31 +0000 (UTC) (envelope-from cristi@net.utcluj.ro) Received: from bavaria.utcluj.ro (unknown [IPv6:2001:b30:5000:2:20e:cff:fe4b:ca01]) by mx1.freebsd.org (Postfix) with ESMTP id 7EB2D13C455 for ; Tue, 18 Dec 2007 00:46:30 +0000 (UTC) (envelope-from cristi@net.utcluj.ro) Received: from localhost (localhost [127.0.0.1]) by bavaria.utcluj.ro (Postfix) with ESMTP id 0FF86508AD; Tue, 18 Dec 2007 02:46:29 +0200 (EET) X-Virus-Scanned: by the daemon playing with your mail on local.mail.utcluj.ro Received: from bavaria.utcluj.ro ([127.0.0.1]) by localhost (bavaria.utcluj.ro [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QYXvJNYmTOIa; Tue, 18 Dec 2007 02:46:22 +0200 (EET) Received: from [172.27.2.200] (c7.campus.utcluj.ro [193.226.6.226]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cristiklein) by bavaria.utcluj.ro (Postfix) with ESMTP id B3148508BC; Tue, 18 Dec 2007 02:46:22 +0200 (EET) Message-ID: <4767185D.6040007@net.utcluj.ro> Date: Tue, 18 Dec 2007 02:46:21 +0200 From: Cristian KLEIN User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Andrea Venturoli References: <47469D3F.1070207@netfence.it> <474AA3E4.7020807@net.utcluj.ro> <4766EF3D.6030807@netfence.it> In-Reply-To: <4766EF3D.6030807@netfence.it> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: portaudit in periodic X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2007 00:46:31 -0000 Andrea Venturoli wrote: > Cristian KLEIN ha scritto: > >> I used to have problem with cron scripts, because cron uses another >> PATH then >> what the script gets if it's run from the shell. Could you try the >> following >> (assuming sh): >> >> export SHELL=/bin/sh >> export PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin >> export HOME=/var/log >> periodic daily >> >> > > Sorry if I reply this late: I tried something similar in crontab and let > it test for a while, but nothing changed. > I'm really out of ideas here. :-( But have you tried running these commands from the shell? It is very important to check the scripts with the above SHELL & PATH environment. If the above works from the shell, I'm pretty much out of ideas too.