/bin/sh: : not found error

Hello,

When i run the shell script in Solaris, i am getting the below error.

/bin/sh: Test.sh: not found

I have tried including "#!/bin/bash" , did not work,
tried with #!/bin/ksh , did not work,
tried without the above include in the script, but still did not work.

Please help me to find the solution for this.

Thank you.

Show us your script.

I have tried with..

#!/bin/bash

echo "1, cronjobs check"

echo "2, cronjobs check"

and , 2nd script like,

echo "1, cronjobs check"

echo "2, cronjobs check"

In the same server, same script is working fine with another user.

if the script is not in your path then you may get this error message.
you must precede with ./ when executing the script from the current working directory.
verify that it has execute permission. if not,
run this command to give execute permission

chmod +x test.sh

Are you running this from the cron ? if so, you may need to define the bash profile at the top of the script for the user running. Add this line to the top of the script (after hash bang line):

 . ~/.bash_profile

Have you tried the obvious:-

ls /full/path/to/*sh*

To see what you have got...