From owner-freebsd-questions@FreeBSD.ORG Fri Jul 28 14:36:31 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 32EA316A4E1 for ; Fri, 28 Jul 2006 14:36:31 +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 3BD7E43D8D for ; Fri, 28 Jul 2006 14:35:40 +0000 (GMT) (envelope-from i.tanusheff@procreditbank.bg) Received: (qmail 63042 invoked from network); 28 Jul 2006 17:35:30 +0300 Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 28 Jul 2006 17:35:30 +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 jkKyE7ZsZTXA for ; Fri, 28 Jul 2006 17:35:30 +0300 (EEST) Received: (qmail 63038 invoked from network); 28 Jul 2006 14:35:30 -0000 Received: from unknown (HELO lotus.procreditbank.bg) (172.16.248.123) by 192.168.1.3 with SMTP; 28 Jul 2006 14:35:30 -0000 In-Reply-To: <20060728102952.AD25.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 17:29:40 +0300 X-MIMETrack: Serialize by Router on DOMINO_HQ/PROCREDITBANK(Release 7.0|August 18, 2005) at 07/28/2006 05:29:41 PM, Serialize complete at 07/28/2006 05:29:41 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 14:36:31 -0000 My error. Correct syntax shoud be: if [ ! -x $PHISH ]; then ... -x checks if file exists (which I hope is your case). And makes source more clean to read :) 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 17:33 Please respond to freebsd-questions@freebsd.org To freebsd-questions@freebsd.org cc Subject Re: Script File Error Ivailo Tanusheff wrote: > Hi, > > You may correct the script by changing: > > if ! [ -a $PHISH ]; then ... > > with: > > if ! [ -x $PHISH ]; then ... According to this site: http://www.tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html that would not be correct. Anyway, I corrected it by rewriting it like this: if [ ! $PHISH ]; then The error no longer appears. I am still not sure what was causing it anyway. Ciao! -- Gerard Seibert gerard@seibercom.net Never argue with a fool. They will lower you to their level and then beat you with experience. _______________________________________________ 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"