From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 15:42:14 2003 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 0922337B404 for ; Fri, 25 Jul 2003 15:42:14 -0700 (PDT) Received: from ns.pro.sk (proxy.pro.sk [195.80.161.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A4AE43F75 for ; Fri, 25 Jul 2003 15:42:12 -0700 (PDT) (envelope-from prosa@pro.sk) Received: from peter (Peter [192.168.1.53]) by ns.pro.sk (8.11.3/8.11.3) with SMTP id h6PMg2E88269; Sat, 26 Jul 2003 00:42:02 +0200 (CEST) (envelope-from prosa@pro.sk) Message-ID: <039b01c352fd$e737c060$3501a8c0@pro.sk> From: "Peter Rosa" To: "Dan Nelson" References: <20030725222200.GA2484@dan.emsphone.com><037d01c352fc$67001240$3501a8c0@pro.sk> <20030725223332.GC2484@dan.emsphone.com> Date: Sat, 26 Jul 2003 00:41:35 +0200 Organization: PRO, s.r.o. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 cc: freebsd-questions Subject: Re: Problem with periodically done scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2003 22:42:14 -0000 You are right. We are so close the solution... But WHY is $rc empty ? As you can see in my previous mail I send whole security script, it is set in the beginning of script and then it is set along whole script at least 10 times (using && or =). So it should not be empty... Peter ----- Original Message ----- From: "Dan Nelson" To: "Peter Rosa" Cc: "freebsd-questions" Sent: Saturday, July 26, 2003 12:33 AM Subject: Re: Problem with periodically done scripts > In the last episode (Jul 26), Peter Rosa said: > > And what's wrong on [ 0 -gt 0 -a -lt 0]. > > -lt needs a number in front of it, since it does a less-than comparison. > > > > > Could you, please, explain the following line: [ $n -gt 0 -a $rc -lt 1 ] > > ... which means that $rc is probably empty. > > -- > Dan Nelson > dnelson@allantgroup.com > _______________________________________________ > 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" >