I am writing a shell script to automate the installation of a product that 
is not in package format. 
The product comes with its on installation script. 
The installation script runs in interactive mode and, except for two 
questions, all that is required is to accept the default values by 
pressing the ENTER key for each question. 
How can one code the ENTER key action in a here document? 
For instance: 

#! /bin/sh 
echo "Begin install" 
cd /var/spool/pkg/mes 
./mesinstall <<EOF 
??Enter key?? 
??Enter key?? 
5600 
??Enter key?? 
y 
EOF 
echo "Finish install" 
exit 

Where "??Enter key??" should be equivalent to pressing the ENTER key
_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to