Date: Sun, 20 Jun 2004 15:56:43 -0400 From: Chuck Swiger <cswiger@mac.com> To: Lewis Thompson <lewiz@fajita.org> Cc: FreeBSD-questions <questions@freebsd.org> Subject: Re: Python application in rc.d. Message-ID: <40D5EBFB.5020106@mac.com> In-Reply-To: <20040620191400.GA70741@fajita.org> References: <20040620175144.GA68736@fajita.org> <40D5DF22.5020609@mac.com> <20040620191400.GA70741@fajita.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Lewis Thompson wrote: [ ... ] >>Does the script set $PATH to include the location where python is? If you >>don't list /usr/local/bin explicitly, this may be the problem... > > No, PATH doesn't get set but if I run it as /usr/local/bin/freevo.sh start > from a login shell (i.e. after the system has booted) it works fine. I > might be getting confused but I think this indicates the script is good > and it's a start-up problem. Is this just wrong? No, you should not assume that running the command from an interactive shell is the same environment that a RC startup script or a cron job runs under. Adding an "echo $PATH" somewhere would probably give you more information, but without a more specific error message, I'll repeat my guess. [ Without seeing the exact error message, asking us what's really going on involves jedi mind tricks! :-) ] -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40D5EBFB.5020106>