Posted By:
sriram_thota
Posted On:
Monday, February 14, 2005 01:22 AM
Hi All, I had developed an install shield.I am facing this problem.I want to execute the postgres with the install shield,so i wrote the steps for installing the postgres in the script file. And I have written following commands in sh file.. su - -c "useradd postgres" cd /usr/local/src chown -R postgres.postgres postgresql-7.4.6 cd postgresql-7.4.6 ./configure gmake gmake check su "postgres" su -c "gmake install" Iam calling this sh file with the java runtime class. When 'su -c "gma
More>>
Hi All,
I had developed an install shield.I am facing this problem.I want to execute the postgres with the install shield,so i wrote the steps for installing the postgres in the script file. And I have written following commands in sh file..
su - -c "useradd postgres"
cd /usr/local/src
chown -R postgres.postgres postgresql-7.4.6
cd postgresql-7.4.6
./configure
gmake
gmake check
su "postgres"
su -c "gmake install"
Iam calling this sh file with the java runtime class. When 'su -c "gmake install"' will execute it should ask password of root..How i can do that.If the command comes there the system is hanging.Can any one suggest the solution. Thanks in advance.
Sriram.T
<<Less