From owner-freebsd-questions@FreeBSD.ORG Fri Jul 28 11:03:30 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 70ABF16A4DD for ; Fri, 28 Jul 2006 11:03:30 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5699543E89 for ; Fri, 28 Jul 2006 10:58:59 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: by wr-out-0506.google.com with SMTP id 69so238485wri for ; Fri, 28 Jul 2006 03:58:54 -0700 (PDT) Received: by 10.65.126.4 with SMTP id d4mr615424qbn; Fri, 28 Jul 2006 03:58:54 -0700 (PDT) Received: from ?192.168.0.4? ( [67.189.184.224]) by mx.gmail.com with ESMTP id c6sm1108145qbc.2006.07.28.03.58.54; Fri, 28 Jul 2006 03:58:54 -0700 (PDT) Date: Fri, 28 Jul 2006 06:59:02 -0400 From: Gerard Seibert To: freebsd-questions@freebsd.org Organization: Seibercom X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Message-Id: <20060728064527.1B82.GERARD@seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.25 [en] Subject: Script File Error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2006 11:03:30 -0000 I have a script that I located on the internet and attempted to alter to suit my personal needs. Since I kind of suck at witting scripts, it is not working correctly. When run from the command line, it appears to work fine. However, when run from CRON, I receive this error message: [: -a: unexpected operator /var/db/clamav//phish.ndb.gz is missing. Are you sure that wget is installed? I am stumped as to why it only appears when run from CRON and not the command line. I then discovered that if I tried to capture the output using 'script', the error also appears. The file is locate here: http://seibercom.net/logs/test Perhaps some script guru can decipher this problem for me. Thanks! -- Gerard Seibert gerard@seibercom.net