![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perl questions - more | frustrated1 | Shell Programming and Scripting | 7 | 10-08-2007 02:38 PM |
| perl questions | frustrated1 | Shell Programming and Scripting | 7 | 10-01-2007 01:52 AM |
| chess perl program questions | hankooknara | Shell Programming and Scripting | 1 | 06-30-2007 07:20 PM |
| Answering posts | Gerry405 | BSD | 3 | 12-08-2005 03:35 AM |
| bash and Perl interaction questions | deryk | Shell Programming and Scripting | 2 | 10-12-2005 01:25 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Perl: answering automatically to install questions
Hi everybody,
I have been looking for an answer to this issue both on google and on the forum, but I couldn't find anything. please help me As part of an automated (in perl) install of Solaris 9, I would like to be able to answer automaticaly to the question the installer asks. Example: /> /cdrom/cdrom0/s0/Solaris_9/Tools/Installers/liveupgrade20 ... <Press ENTER to continue> ... <--[21%]--[ENTER To Continue]--[n To Finish]--> n ... Enter 'y' to accept the license agreement. Enter 'n' to decline the license agreement and exit the install. Y ... <Press ENTER to continue> etc... Here, I woud like to automatically answer via my perl script that is the following sequence: "enter" then "n" then "y" then "enter" Is it possible in perl? Can I do it without using threads? Do I have to make a dedicated perl script running in the background that will detect the prompts and answer them? Or maybe a shell script could do it ??? in summary: HELP ME PLEASE Thanks !!!! Last edited by zaap; 02-23-2006 at 11:28 AM. Reason: typo |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
So you have tried to use Expect and didn't work out? Or you wouldn't like to use it?
I have no experience with Expect but for questions like these the usual first response I frequently heard from the Perl people was "Expect". |
|
#3
|
|||
|
|||
|
That's also the answer I had from an other forum: use expect. I'll dig it monday when back to work :-) but it's probably what I'll have to do !
thanks |
|||
| Google The UNIX and Linux Forums |