From owner-freebsd-questions@FreeBSD.ORG Fri Jul 28 13:41:27 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 E5A9816A4E6 for ; Fri, 28 Jul 2006 13:41:27 +0000 (UTC) (envelope-from i.tanusheff@procreditbank.bg) Received: from mail.procreditbank.bg (mail.procreditbank.bg [212.95.179.198]) by mx1.FreeBSD.org (Postfix) with SMTP id B4B7043D45 for ; Fri, 28 Jul 2006 13:41:26 +0000 (GMT) (envelope-from i.tanusheff@procreditbank.bg) Received: (qmail 64306 invoked from network); 28 Jul 2006 16:39:17 +0300 Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 28 Jul 2006 16:39:17 +0300 X-Virus-Scanned: by amavisd-new + Clam Antivirus at procreditbank.bg Received: from mail.procreditbank.bg ([127.0.0.1]) by localhost (mail.procreditbank.bg [127.0.0.1]) (amavisd-new, port 10024) with SMTP id cWhpWaHsKAf3 for ; Fri, 28 Jul 2006 16:39:10 +0300 (EEST) Received: (qmail 64262 invoked from network); 28 Jul 2006 13:39:09 -0000 Received: from unknown (HELO lotus.procreditbank.bg) (172.16.248.123) by 192.168.1.3 with SMTP; 28 Jul 2006 13:39:09 -0000 In-Reply-To: <20060728064527.1B82.GERARD@seibercom.net> To: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 From: Ivailo Tanusheff Message-ID: Date: Fri, 28 Jul 2006 16:33:19 +0300 X-MIMETrack: Serialize by Router on DOMINO_HQ/PROCREDITBANK(Release 7.0|August 18, 2005) at 07/28/2006 04:33:19 PM, Serialize complete at 07/28/2006 04:33:19 PM Content-Type: text/plain; charset="US-ASCII" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Script File Error 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: Fri, 28 Jul 2006 13:41:28 -0000 Hi, You may correct the script by changing: if ! [ -a $PHISH ]; then ... with: if ! [ -x $PHISH ]; then ... Regards, Ivailo Tanusheff Senior System administrator ProCredit Bank (Bulgaria) AD tel. +359 2 921 7161 fax +359 2 921 7110 http://www.procreditbank.bg Disclaimer: The information contained in this message is intended solely for the use of individual or entity to whom it is addressed and other authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this message is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. ProCredit Bank is neither liable for the proper and complete transmission of the information contained in this message nor for any delay in its receipt. Gerard Seibert Sent by: owner-freebsd-questions@freebsd.org 28.07.2006 13:59 Please respond to freebsd-questions@freebsd.org To freebsd-questions@freebsd.org cc Subject Script File Error 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 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"