From owner-freebsd-questions@FreeBSD.ORG Sat Dec 2 06:39:45 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BA12F16A407 for ; Sat, 2 Dec 2006 06:39:45 +0000 (UTC) (envelope-from rastill@shaw.ca) Received: from pd2mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BD0D43C9D for ; Sat, 2 Dec 2006 06:39:26 +0000 (GMT) (envelope-from rastill@shaw.ca) Received: from pd2mr8so.prod.shaw.ca (pd2mr8so-qfe3.prod.shaw.ca [10.0.141.11]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0J9M00EM5VU9MN40@l-daemon> for freebsd-questions@freebsd.org; Fri, 01 Dec 2006 23:39:45 -0700 (MST) Received: from pn2ml4so.prod.shaw.ca ([10.0.121.148]) by pd2mr8so.prod.shaw.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0J9M00DD5VU9QV21@pd2mr8so.prod.shaw.ca> for freebsd-questions@freebsd.org; Fri, 01 Dec 2006 23:39:45 -0700 (MST) Received: from [192.168.0.102] ([70.65.134.12]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0J9M001HDVU9VFZ0@l-daemon> for freebsd-questions@freebsd.org; Fri, 01 Dec 2006 23:39:45 -0700 (MST) Date: Fri, 01 Dec 2006 23:39:43 -0700 From: Ray In-reply-to: <14989d6e0612010003o43774f27p5228c34b02c839ae@mail.gmail.com> To: freebsd-questions@freebsd.org Message-id: <200612012339.43684.rastill@shaw.ca> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <039401c71517$b9ef5750$6700a8c0@New> <14989d6e0612010003o43774f27p5228c34b02c839ae@mail.gmail.com> User-Agent: KMail/1.9.5 Cc: Christian Walther Subject: Re: problem with script execution SOLVED! 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: Sat, 02 Dec 2006 06:39:45 -0000 On Friday 01 December 2006 1:03 am, Christian Walther wrote: > Try adding "#!/bin/sh" as the first new line of your script. Roughly > speaking: This makes the system use /bin/sh as the shell that executes > the script. > Specifying a PATH inside the script might help, too. Scripts have a > very small environment set by default, so your PATH might be just > something like /bin:/usr/bin. If sudo is in /usr/local/bin it won't > work. > Thank you! That was it. Ray