Hi Agnello, 
 
 Try with install packages with  -y  OR   --yes OR  --assume-yes  options 

 Above option is for  automatic yes to prompts and it  assume "yes" as answer 
to all prompts 
 
 Thanks & Regards
 Jayesh Shinde
 
  
     
 
     
   
Muzaffar Ansari <[EMAIL PROTECTED]> wrote:                               Hi 
Agnello,
    
   You can try the following,
    
   apt-get install package-name << END
   y
   END
 
 if there are more packages you can put them in a loop,
    
   for package in package1 package2 package3 ...
   do
   apt-get install $package << END
   y
   END
   done
    
   Also you can see the help, "apt-get --help" for some built-in way where you 
can force it for non-interactive installation.
    
   Regards,
   Muzaffar Ansari
    
   
 Agnello George <[EMAIL PROTECTED]> wrote:
           I am trying to write a really simple script to install postfix. my 
script
 begins like this :
 
 #!/bin/sh
 
 echo "this is a script tp install postfix for virtual domains "
 
 apt-get install postfix-mysql
 
 apt-get install mutt
 
 apt-get install telnet
 
 apt get install mysql-common mysql-client mysql-server libmysqlclient15-dev
 sysv-rc-conf
 
 apt-get instal openssl
 
 apt-get install libsasl2 libsasl2-modules libsasl2-modules-sql
 libauthen-sasl-cyrus-perl libauthen-sasl-perl
 
 apt-get install courier-base courier-authlib-mysql courier-ssl courier-pop
 
 sysv-rc-conf --level 235 mysqld on
 
 sysv-rc-conf --level 235 postfix on
 
 apt-get install apache2
 
 apt-get install vim
 ..... and so on
 
 but as soon as the scipt executes it tries to install postfix-mysql , the
 apt-get progam asks the question " Do you want to continue [Y/n]? "
 
 i have to keep pressing " y " ...... what do i put in my script that will
 automate this , without asking me the question " Do you want to continue
 [Y/n]?"
 
 Thanks for all the help!!
 -- 
 Regards
 Agnello Dsouza
 www.linux-vashi.blogspot.com
 
 -- 
 Regards
 Agnello Dsouza
 www.linux-vashi.blogspot.com
 www.study-the-word.blogspot.com
 
 [Non-text portions of this message have been removed]
 
 ---------------------------------
 Never miss a thing.   Make Yahoo your homepage.
 
 [Non-text portions of this message have been removed]
 
 
     
                               

       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

[Non-text portions of this message have been removed]

Reply via email to