473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2222
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

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

Similar topics

1
by: DOKNIK | last post by:
Hi, I am trying to install PHP with the Apache DSO Installation on AIX 5.1. I have successfully configured and installed Apache and can view the Test Apache page successfully The installation...
0
by: Eric | last post by:
I've got a weird problem, regardless of how often I enter: perl -MCPAN -e 'install "Data::Dumper"' I never get a message telling me that it is up-to-date. It will always try to reinstall even...
2
by: KP | last post by:
Is there a way that I can Automate SQL Setup via C#, PERL or VB?
1
by: smsabu2002 | last post by:
Hi, I am facing the build problem while installing the DBD-MySql perl module (ver 2.9008) using both GCC and CC compilers in HP-UX machine. For the Build using GCC, the compiler error is...
2
by: ofzer | last post by:
Hi. I lastly finished writing a perl application. The application uses several modules like tk etc ... Im now willing to send this application abroad. The users which going to use this perl...
1
by: karthik2423 | last post by:
Hi folks, I have an application here which needs user intervention while running. Here's the format - When I run the application "opcack", it asks for some values like following - Message...
1
by: rtr | last post by:
I am installing Perl Modules for Bugzilla using PPM installation on Windows XP. When I execute this command from Command prompt "ppm install PerlMagick", I get one error message which states that...
2
by: letmetry | last post by:
Hi all, Is there any way to automate a installation process using C++/C#. For eg. Opening some setup.exe file and clicking the 'next' buttons.. till 'finish'.. Any code sample will help me a...
1
by: sureshbup | last post by:
Hi to all, I am trying to install CPAN modules using the command perl -MCPAN -e 'install qw (Text::CSV_XS)' but i get the problem like this even i changed the working proxies but none is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.