[Ilugc] Press Enter to continue....

  • From: ras.kumar01@xxxxxxxxx (Rajesh Kumar)
  • Date: Mon, 9 Apr 2012 10:09:32 +0530

Hi Friend

 I am a beginner of shell script, when I tried to install java 1.6 used by
bash script, but while executing java paused suddenly, " Press Enter to
continue...."  how to avoid this

i need continuously run the script file .. Please check my script file
below,

My Script file

#!/bin/bash
cd /opt
./jdk-6u21-linux-i586.bin
cp -rf jdk1.6.0_21 /usr/
rm -rf /usr/bin/java
rm -rf /usr/bin/javac
ln -s /usr/jdk1.6.0_21/bin/java /usr/bin/java
ln -s /usr/jdk1.6.0_21/bin/javac /usr/bin/javac
echo export JAVA_HOME=/usr/jdk1.6.0_21 >> /etc/profile
echo export JAVA_PATH=/usr/jdk1.6.0_21/bin >> /etc/profile
source /etc/profile

Thanks & Regards

B.Rajeshkumar

Other related posts: