hello i got server quad core with linux CentOS
i want to install script (this is a part of the script)
	
	
	
		
when im doing "sh Install.sh" through the ROOT
it writes me :
	
	
	
		
ive tried ./Install.sh and bash Install.sh and sh Install.sh and all the same!!
whats the problem here?!
				
			i want to install script (this is a part of the script)
		PHP:
	
	#!/bin/bash 
IPconfig=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | cut -d\  -f1`; 
IPon="$IPconfig"; 
id | grep "uid=0(" >/dev/null 
if [ $? != "0" ]; then 
        uname -a | grep -i CYGWIN >/dev/null 
        if [ $? != "0" ]; then 
             printf "You must be Root to do this!" 
               su > /dev/null 
                 
        fi 
fi 
id | grep "uid=0(" >/dev/null 
if [ $? != "0" ]; then 
        uname -a | grep -i CYGWIN >/dev/null 
        if [ $? != "0" ]; then 
          echo "Wrong Root Password, Try Again!" 
            
           ./Install.sh 
         exit 1 
               
        fi 
fi 
#adduser rpanel > /dev/null 2> /dev/null 
echo "Welcome To Install!" 
/usr/sbin/adduser rpanel > /dev/null 2> /dev/null 
printf "Loading Setup" 
sleep 1 
printf "." 
sleep 1 
printf "." 
sleep 1 
printf "." 
echo "" 
if cd RPanel 2> /dev/null 
then 
echo "" 
cd RPanel 2> /dev/null 
cd .. 
else 
echo "Error: Missing Files, Cannot Start Install." 
printf "Exiting" 
sleep 1 
printf "." 
sleep 1 
printf "." 
sleep 1 
printf "." 
echo "" 
exit 0 
exit 1 
fi 
if cd vRPanel 2> /dev/null 
then 
cd vRPanel 2> /dev/null 
tar -zxvf RPanel-Files.tar.gz  
chmod 777 * 
cd .. 
chmod 777 vRPanel -R 
else 
echo "Error: Missing Files, Cannot Start Install." 
echo "Exiting" 
sleep 1 
printf "." 
sleep 1 
printf "." 
sleep 1 
printf "." 
echo "" 
exit 1 
fi 
if cd commands 2> /dev/null 
then 
cd commands 2> /dev/null 
cd .. 
else 
echo "Error: Missing Files, Cannot Start Install." 
printf "Exiting" 
sleep 1 
printf "." 
sleep 1 
printf "." 
sleep 1 
printf "." 
echo "" 
exit 0 
exit 1 
fi 
printf "Setuping RPanel IP Config" 
sleep 1 
printf "." 
sleep 1 
printf "." 
sleep 1 
printf "." 
echo "" 
for ((i=1;$i<=3;i=$i+1)) 
{ 
printf "Enter Your IP (Default: $IPconfig): " 
read ipcon 
if [ "$ipcon" != "" ]; then 
IPconfig="$ipcon" 
fi 
printf "Is $IPconfig the IP that you chose? (yes,no): " 
read yesno 
if [ "$yesno" = "yes" ]; then 
i=10 
fi 
if [ "$yesno" = "no" ]; then 
i=1 
IPconfig="$IPon"; 
exit 
fi 
if [ "$yesno" = "" ]; then 
i=1 
IPconfig="$IPon"; 
fi 
}
	when im doing "sh Install.sh" through the ROOT
it writes me :
		PHP:
	
	: command not found: 
: command not found: 
: command not found: 
'nstall.sh: line 140: syntax error near unexpected token ` 
'nstall.sh: line 140: `for ((i=1;i<=3;i=i+1))
	ive tried ./Install.sh and bash Install.sh and sh Install.sh and all the same!!
whats the problem here?!