From owner-freebsd-questions@FreeBSD.ORG Mon Jul 3 15:39:50 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 9B5B916A40F for ; Mon, 3 Jul 2006 15:39:50 +0000 (UTC) (envelope-from atom.powers@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2698543D45 for ; Mon, 3 Jul 2006 15:39:50 +0000 (GMT) (envelope-from atom.powers@gmail.com) Received: by py-out-1112.google.com with SMTP id t32so1526214pyc for ; Mon, 03 Jul 2006 08:39:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Muowz+TUnJstD2q1x5I+YYzWaLqn+IyXicbJlLVLHe8fl+PUQGK1abNEq4Pw5vMJYcrNgdLpkEfO3z4jbtHsgro9WXd/1HXIGHttOOR3E7rktzE9b3OiNTOZjgDLHMZiihjlHzn8k3L/ki6oHUodEKsFVIswJwNGNwId2qoluzI= Received: by 10.35.34.18 with SMTP id m18mr2867985pyj; Mon, 03 Jul 2006 08:39:49 -0700 (PDT) Received: by 10.35.110.6 with HTTP; Mon, 3 Jul 2006 08:39:49 -0700 (PDT) Message-ID: Date: Mon, 3 Jul 2006 08:39:49 -0700 From: "Atom Powers" Cc: freebsd-questions@freebsd.org In-Reply-To: <006701c69e7a$7898db00$01010101@avalon.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <006701c69e7a$7898db00$01010101@avalon.lan> Subject: Re: shell scripting: help appreciated 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: Mon, 03 Jul 2006 15:39:50 -0000 On 7/3/06, no@spam@mgedv.net wrote: > > if i change the line > /bin/sh -c subprogram.sh $h_val1 $h_val2 $h_opt1; > to > echo /bin/sh -c subprogram.sh $h_val1 $h_val2 $h_opt1; > the program loops for all records in the foo.conf correctly. > > if i remove the "echo" keyword, the sub-script get's executed, > but the shell terminates as if there were lesser records in > the foo.conf file! try: eval /bin/sh -c "subprogram.sh $h_val1 $h_val2 $h_opt1"; -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers--