Date: Mon, 7 Jan 2008 11:01:25 -0500 From: "Josh Carroll" <josh.carroll@gmail.com> To: "Barry Byrne" <barry.byrne@wbtsystems.com> Cc: stevefranks@ieee.org, User Questions <freebsd-questions@freebsd.org> Subject: Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without "sh <script>" Message-ID: <8cb6106e0801070801l7f6699cfk9a6ef931ef22070e@mail.gmail.com> In-Reply-To: <015801c85145$f3862ff0$c5010c0a@SUNYA> References: <539c60b90801070752l3d0e571cq8f7b1b519e1e808c@mail.gmail.com> <015801c85145$f3862ff0$c5010c0a@SUNYA>
next in thread | previous in thread | raw e-mail | index | archive | help
> How are you running the commands? The problem is probably to do with your > path. Your home directory isn't typically and shouldn't be in your PATH (try > echo $PATH). You need to specify the full path to your scripts or place a ./ > in front of the script name if in the same directory. > > e.g. ./myscript.sh or /home/username/myscript.sh Ahh I misunderstood his email. Yes, most likely he is running it with "foo.sh" rather than ./foo.sh or /full/path/to/foo.sh Josh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cb6106e0801070801l7f6699cfk9a6ef931ef22070e>
