You running it from cron? If so, there's no search path worth talking about. You can either configure an useable $PATH in the script, or use the full pathname of each command instead.
Steve On Tue, 27 Nov 2007 11:39:42 +1300 Kerry Mayes <[EMAIL PROTECTED]> wrote: > The following shell script is producing an error saying that > "basename" is not found: > > -------------------------- > #!/bin/sh > # wrapper script for OOos SDK programs > > LD_LIBRARY_PATH=/usr/lib/openoffice/program > /usr/lib/openoffice/sdk/linux/bin/`basename $0`.bin "$@" > ------------------------- > > Now, I'm a real shell script noob, but `basename $0` is supposed to > return the name of the file, right? Why would that fail? > > 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.
pgpzHiXGUoPdF.pgp
Description: PGP signature
