[NTLUG:Discuss] Command not found

David Stanaway david at stanaway.net
Thu Jan 25 18:36:32 CST 2007


A different approach would be to type:

env


at the command prompt, if all looks OK there, edit the script that gives
the error and add a line near the beginning after any lines that look like:

source /etc/foo/bar

or

. /etc/foo/bar


add

env


If things look bad there, look at the files referenced in the source or
. statements, or any assignments to those variables, perhaps the file
doesn't exist so the script is looking in the wrong place?

You might get more luck describing exactly which scripts you are trying
to run that give the error, as any system wide corruption of PATH or the
assignment statement to PATH in /etc/profile will give you much bigger
probems than running just one isolated script. I would be more inclined
to suspect that something in the script, or its config files is broken.



More information about the Discuss mailing list