On Nov 27, 2007 11:39 AM, Kerry Mayes <[EMAIL PROTECTED]> wrote:
> The following shell script is producing an error saying that
> "basename" is not found:

> I'm about to edit each of these 20 files to specifically include the
> right name, but wondered if there was a better way to sort this issue.

I'd guess that you're running these scripts from a non-interactive
environment that doesn't have the definition of $PATH that you are
expecting.

The "right" thing to do is to either explicitly assign
PATH=...;...;... (i.e. whatever you need) in each script, or to
explicitly name the location of each binary when you refer to it

/usr/lib/openoffice/sdk/linux/bin/`/usr/bin/basename $0`.bin "$@"

-jim

Reply via email to