Date: Fri, 01 Dec 2006 23:39:43 -0700 From: Ray <rastill@shaw.ca> To: freebsd-questions@freebsd.org Cc: Christian Walther <cptsalek@gmail.com> Subject: Re: problem with script execution SOLVED! Message-ID: <200612012339.43684.rastill@shaw.ca> In-Reply-To: <14989d6e0612010003o43774f27p5228c34b02c839ae@mail.gmail.com> References: <039401c71517$b9ef5750$6700a8c0@New> <14989d6e0612010003o43774f27p5228c34b02c839ae@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612012339.43684.rastill>