Guys,
when i am executing the following script I am getting following error.
-bash: test.sh: command not found
$ test.sh -- script name
#! /bin/bash
echo " Job started........"
CURRENTDIR=`pwd`
exit 0
thanks
Guys,
when i am executing the following script I am getting following error.
-bash: test.sh: command not found
$ test.sh -- script name
#! /bin/bash
echo " Job started........"
CURRENTDIR=`pwd`
exit 0
thanks
It means what it says -- test.sh cannot be found.
UNIX doesn't include the current directory for commands for security reasons. You have to tell it to look there.
./test.sh
By the way, there's already a program named 'test', so that name's usually avoided for scripts.
Ok it worked giving the whole path.. thanks for quick reply