executing script

Hello ;
I have a script myscript.sh. If I type at prompt
myscript.sh
I will receive
ksh: myscript.sh: not found
but if I type
./myscript.sh
it works .
What should I do to be able to run myscript just typing
myscript.sh
Many thanks before.

Hello

U r not able to execute the script as the script is in ur current directory and ur current directory is not set in the $PATH variable .

At ur prompt type :-

PATH=$PATH:.;

and then execute the script .

2) answer to 2nd question

./myscript will execute the script in ur current directory overriding the PATH variable .

Cheers
Rahul :slight_smile: