1 /path/to/install Company Name etc... #### my $setup = "./setup"; my $answerFile = "./AnswerFile"; my $logFile = "./log"; open (IN, "<$answerFile") || die "can't open $answerFile: $!"; my @answerFile = ; close IN; my $i=0; open (SETUP, "| $setup") || die "can't run $setup: $!"; while() { # stuff gets printed out then a question is displayed # want to answer the question from $answerFile # perhaps: print SETUP $answerFile[$i++]; } close SETUP; #### ================================================================= foo Server Installation, build spf-14-3-0_12326 ================================================================= WARNING: NIS Detected. Please ensure that the services entry uses files, otherwise this installation of foo Server Installation may not function correctly. WARNING: sudo is not installed or not on path. foo Loader will not be able to login as anyone other than the current user. Checking for existing installations... Please choose from one of the options listed below. 1. New Installation (default) 2. Upgrade /tril21/workarea/12/server 3. Upgrade /tril21/workarea/13.5/server Enter choice (1-3): $answerFile[0] Please enter the name of your organization: $answerFile[1] Where would you like to install foo Server? : $answerFile[2] #### system ("$setup < $answerFile");