How come I get this when I run mkdir from in a script file but not if I run it in the terminal as usual?
Code: Select all
mkdir: command not found
Code: Select all
mkdir: command not found
Genone wrote:a) what does `which mkdir` (when run in a terminal) say?
Code: Select all
which mkdir
/usr/bin/mkdirGenone wrote:b) how is $PATH set inside your script?
Code: Select all
echo $PATH
/usr/kde/3.5/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.14/bin:/opt/sun-jdk-1.4.2.14/jre/bin:/opt/sun-jdk-1.4.2.14/jre/javaws:/usr/kde/3.5/bin:/usr/qt/3/bin