473,750 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

automating an installation using Perl?

6 New Member
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 2235
kesava81
6 New Member
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 Recognized Expert Specialist
Your question is not clear to me, but look into the Expect module.
Mar 17 '08 #3
rohitbasu77
89 New Member
no idea have to check.. for some module... at cpan
Mar 18 '08 #4
kesava81
6 New Member
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...bel ieve 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 Recognized Expert Specialist
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
kesava81
6 New Member
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
kesava81
6 New Member
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
4717
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 guide i am using ( http://hotwired.lycos.com/webmonkey/00/44/index4a.html ) suggest that the installation of packages Bison and Flex have to be installed as part of the pre-requisites
0
5299
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 though the installation is apparently successful. Here is the output: CPAN: Storable loaded ok
2
1703
by: KP | last post by:
Is there a way that I can Automate SQL Setup via C#, PERL or VB?
1
3642
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 produced due to the unknown GCC compiler option "+DAportable". For the Build using CC, the preprocessor error is produced due to the recursive declration of macro "PerlIO" in perlio.h file.
2
1915
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 application have already installed perl on their computer. However , the other moduls are not installed on users computers. I would like to built this installation script which will install the modules automatically and not by entering PPM/CPAN.
1
4381
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 Text Pattern (none) : Severity (none) : Time From (none) : Time To (none) : Unmatched Messages only (n) :
1
5143
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 "ppm installation failed:Can't find any package that provide PerlMagick". I've downloaded PerlMagick and ImageMagick. But I don't know where to place these packages and how to install them manually. Can any one help?
2
2226
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 lot.. Thanks in advance..
1
2479
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 working. i have tried different mirrors also. I tried different modules also. ===========================================================
0
9001
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9584
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9397
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9344
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4893
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.