From owner-freebsd-questions@FreeBSD.ORG Thu Oct 21 18:56:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29A5D16A4CE for ; Thu, 21 Oct 2004 18:56:27 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA51C43D31 for ; Thu, 21 Oct 2004 18:56:26 +0000 (GMT) (envelope-from nocmonkey@gmail.com) Received: by rproxy.gmail.com with SMTP id 74so59633rnk for ; Thu, 21 Oct 2004 11:56:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=rpn6phkTuTwcB3L4NVPIfwAJ3qHIwHGVImYY9uMJQbnAf/cKKyxm8vqRgeCZC6s87Oz0Nq+ujMlsXg8hcAi0F78d8B5g6jv8OszlxdZFHgu3awNoarcXn4WT1FfXoHp0gdSUpz5wqMWqV4JUaSHD9nOhjFPFcDz8iZUYvZ+8CJk= Received: by 10.38.13.67 with SMTP id 67mr1167698rnm; Thu, 21 Oct 2004 11:56:24 -0700 (PDT) Received: by 10.38.22.79 with HTTP; Thu, 21 Oct 2004 11:56:24 -0700 (PDT) Message-ID: Date: Thu, 21 Oct 2004 14:56:24 -0400 From: Danny To: Frank Laszlo In-Reply-To: <4178015B.3080307@vonostingroup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <4177D424.3040702@daleco.biz> <4178015B.3080307@vonostingroup.com> cc: FreeBSD-questions Subject: Re: OT: date command for pflogsumm.pl Script - undefined variable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Danny List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 18:56:27 -0000 On Thu, 21 Oct 2004 14:35:07 -0400, Frank Laszlo wrote: > Sounds like *NOT* /bin/sh. try adding: > #!/bin/sh > > to the top of the script. Thanks Frank, the script has other incompatibilities with my config, so I just ended up editing /etc/crontab and added: /usr/sbin/pflogsumm.pl /var/log/maillog | /usr/bin/mailx -s "`uname -n` daily mail stats" root This will do the job for now. ...D