469,309 Members | 2,789 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,309 developers. It's quick & easy.

automating an installation using Perl?

Hi, All,

I am a perl novice..and I was wondering if there is anyway that a product installation can be automated using perl.

Here is the scenario I am talking about.

Take a product and start the installation on Unix...in the Console mode
For each response, we should be able to provide a response, by reading it from a file.

Is this actually possible through perl?

Regards,
Deekshit
Mar 17 '08 #1
7 2111
Hi, All,

I am a perl novice..and I was wondering if there is anyway that a product installation can be automated using perl.

Here is the scenario I am talking about.

Take a product and start the installation on Unix...in the Console mode
For each response, we should be able to provide a response, by reading it from a file.

Is this actually possible through perl?

Regards,
Deekshit
Is there a module similar to Win32:GUITest on Unix/Linux?
If so, can I get the module name please...

Thanks,
Deekshit
Mar 17 '08 #2
KevinADC
4,059 Expert 2GB
Your question is not clear to me, but look into the Expect module.
Mar 17 '08 #3
no idea have to check.. for some module... at cpan
Mar 18 '08 #4
ok Kevin...let me try to make it more clear...
On a Unix machine, have you tried to install any program in Console mode? basically this is the mode where you do not have a GUI screen to work with during the install, so the installation is all text based.

Now the installer asks you questions like "Product installation location" and you enter a response for that as /home/oracle or something of that sort...
I want to write a script which will help automate this entire process for the user responses...believe me if we can do that it will save a lot of time during the QA Testing cycle

Regards,
Deekshit
Mar 18 '08 #5
KevinADC
4,059 Expert 2GB
Now the installer asks you questions like "Product installation location" and you enter a response for that as /home/oracle or something of that sort...
I want to write a script which will help automate this entire process for the user responses...

Regards,
Deekshit
That is what the Expect module does.

http://search.cpan.org/~rgiersig/Expect-1.21/Expect.pod

There is also Expect::Simple which is hopefully simpler to use than Expect. I have never used either of them myself.
Mar 18 '08 #6
great Kevin!

Thanks a lot..I will try that module and see how it works for my script

Thanks again.

Deekshit
Mar 19 '08 #7
Thanks for the tip Kevin...the Expect module works super!
Mar 20 '08 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by DOKNIK | last post: by
reply views Thread by Eric | last post: by
2 posts views Thread by KP | last post: by
2 posts views Thread by ofzer | last post: by
1 post views Thread by karthik2423 | last post: by
1 post views Thread by rtr | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.