Quote:
Originally Posted by vgersh99
Most likely the directory where your 'scriptname.sh' resides is not in $PATH. Or you don't have '.' in your $PATH.
Try either:
Code:
./scriptname.sh
OR
/absolutePath/scriptname.sh
|
But can't I run any scripts from anywhere as long as I am in the same folder of it ?
I mean, if it is coded to be recognized by KSH and is executable, then if I am in the same folder, I should be able to run it no matter what's in the PATH ?
added comments ...
I checked on that server and I have
ksh in both
/usr/bin and
/bin . But the PATH does not contain
/bin in it. It does have
/usr/bin