shell script and Permission denied

Have the following in a .sh file.

printf "Installing ... \ r"
cd $ ORG_DIR / a_a
. / configure> error.log
Make 1> error.log 2> error.log
make install> error.log

But when I run I get the following.

install.sh: line 270:. / configure: Permission denied
make: *** No rule two make target `install '. Stop.

Can you insert in sh script to give the folder rights for example, something with chmod +x configure?

Anyone have an idea for a solution?

You have . / configure> error.log The slash is surrounded by spaces. Removes those two spaces. And although not required, for better readability, add a space between the e and the greater than sign.

Speaking of readability, please use code tags the next time you post code.

I do not know just what went wrong, but do not have the space in the code. Have posted it here again

	
         printf "Installing...\r"
	cd $ORG_DIR/a_a
	./configure > error.log
	make 1> error.log 2> error.log
	make install > error.log

But if you have an idea to correct Permission denied problem directly in the script?

Well to do what you are asking change install.sh to read:

chmod u+x configure
./configure > error.log

This assumes that you are running either as root on as the owner of the configure file. Are you sure that you are running install.sh as the proper user?