Ask a Question related to PERL Beginners, Design and Development.
-
Michael Griffin #1
Shell script build Config.pm file
From a bash shell on Red Hat AS 3, can I automatically create the
/usr/lib/perl5/5.8.0/CPAN/Config.pm file?
I am trying to automate the installation of some PERL modules but I
would like to automate the initial configuration step as well.
Michael E. Griffin
Red Hat Linux Systems Administrator
PEC Solutions
12750 Fair Lakes Circle
Fairfax, VA 22033
703.306.3094
[email]Michael.Griffin@pec.com[/email]
Michael Griffin Guest
-
shell script help!!
hi all, i have some commands on hand, but i don't know how i can stick it up with (ksh) shell script... can anyone help? 1) use find to list... -
Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config
I had many ASP.NET web applications that I created before I had to rebuild my machine. After a fresh install of XP Pro, VS.NET 2003, etc, I now... -
config file: a) what Module ? b) conditionals in config (for multiple hosts)
Hi, a) I am looking for a module to handle config files. There are a number of these modules, like AppCconig. Any consensus about The Right... -
shell script to transfer flat file generated from isql query to microsoft access database
Can someone help me with a way in shell script to transfer flat file generated from isql query to microsoft access database. Thanks -
Execute shell script from a perl script
Hi, How can I executed a Unix shell script from a Perl script. The shell script is a dump of a oracle table to a file. The perl script is for... -
Wiggins D Anconia #2
Re: Shell script build Config.pm file
> >From a bash shell on Red Hat AS 3, can I automatically create the
Does it work? Have you tried? What was the result?> /usr/lib/perl5/5.8.0/CPAN/Config.pm file?
>
> I am trying to automate the installation of some PERL modules but I
> would like to automate the initial configuration step as well.
>
Depending on the user running the automation non root that is, you may
need a ~/.cpan/CPAN/MyConfig.pm.
perldoc CPAN for more on automation of install of modules.
[url]http://danconia.org[/url]
p.s. Perl or perl, never PERL
Wiggins D Anconia Guest
-
Michael Griffin #3
RE: Shell script build Config.pm file
I have found that there is documentation indicating the automation of
modules:
perl -MCPAN -e 'install Bundle::myBundle'
where myBundle is basically a pod file with =head1 CONTENTS and then a
list of the modules to install.
I have seen some documentation using the interactive CPAN shell that
indicates that using o conf <scalar option> <value> allows the setting
of these particular values. I have not found documentation on scripting
out the parameters to the Config.pm file. I was considering echoing the
values out to the file, but I would prefer to send perl commands so as
not to mess up the format or syntax, i.e. perl [some switch(s)] [some
arguments].
thanks,
Michael
p.s. Sorry about the perl
Does it work? Have you tried? What was the result?> /usr/lib/perl5/5.8.0/CPAN/Config.pm file?> >From a bash shell on Red Hat AS 3, can I automatically create the
>
> I am trying to automate the installation of some PERL modules but I
> would like to automate the initial configuration step as well.
>
Depending on the user running the automation non root that is, you may
need a ~/.cpan/CPAN/MyConfig.pm.
perldoc CPAN for more on automation of install of modules.
[url]http://danconia.org[/url]
p.s. Perl or perl, never PERL
Michael Griffin Guest
-
Wiggins D Anconia #4
RE: Shell script build Config.pm file
Please bottom post...
Ok, let's back up a bit. I am assuming that Perl is installed, CPAN is> I have found that there is documentation indicating the automation of
> modules:
> perl -MCPAN -e 'install Bundle::myBundle'
> where myBundle is basically a pod file with =head1 CONTENTS and then a
> list of the modules to install.
>
> I have seen some documentation using the interactive CPAN shell that
> indicates that using o conf <scalar option> <value> allows the setting
> of these particular values. I have not found documentation on scripting
> out the parameters to the Config.pm file. I was considering echoing the
> values out to the file, but I would prefer to send perl commands so as
> not to mess up the format or syntax, i.e. perl [some switch(s)] [some
> arguments].
>
> thanks,
>
> Michael
>
> p.s. Sorry about the perl
installed in at least its stock form. So my first question, why use a
shell script instead of a Perl script? Second question would be how
many of the values are changing based on the actual location of install?
In other words, can it be enough to just install the same base config file?
Ah, now to the beauty of open source, it appears after a cursory
cracking open of CPAN.pm (we can, you know, isn't it grand!) when
storing a configuration using 'o conf commit' CPAN simply calls the
'CPAN::Config->commit' method. CPAN::Config is just a hash of
configuration options (well actually an object), and 'commit' uses
ExtUtils::MakeMaker::neatvalue to actually store the values. There are
also a number of other neat methods for manipulating CPAN configs in
CPAN::Config, such as 'edit' and 'load', presumably everything one needs
to automate the process. Under 'CONFIGURATION' in perldoc CPAN is a
list of the properties that you may configure (or just crack open a
Config.pm that was previously made).
Thoughts?
[url]http://danconia.org[/url]
Wiggins D Anconia Guest
-
Michael Griffin #5
RE: Shell script build Config.pm file
> I have found that there is documentation indicating the automation of
> modules:
> perl -MCPAN -e 'install Bundle::myBundle'
> where myBundle is basically a pod file with =head1 CONTENTS and then a> list of the modules to install.
>
> I have seen some documentation using the interactive CPAN shell that
> indicates that using o conf <scalar option> <value> allows the setting> of these particular values. I have not found documentation on
> scripting out the parameters to the Config.pm file. I was consideringOk, let's back up a bit. I am assuming that Perl is installed, CPAN is> echoing the values out to the file, but I would prefer to send perl
> commands so as not to mess up the format or syntax, i.e. perl [some
> switch(s)] [some arguments].
>
> thanks,
>
> Michael
>
> p.s. Sorry about the perl
installed in at least its stock form. So my first question, why use a
shell script instead of a Perl script? Second question would be how
many of the values are changing based on the actual location of install?
In other words, can it be enough to just install the same base config
file?
Ah, now to the beauty of open source, it appears after a cursory
cracking open of CPAN.pm (we can, you know, isn't it grand!) when
storing a configuration using 'o conf commit' CPAN simply calls the
'CPAN::Config->commit' method. CPAN::Config is just a hash of
configuration options (well actually an object), and 'commit' uses
ExtUtils::MakeMaker::neatvalue to actually store the values. There are
also a number of other neat methods for manipulating CPAN configs in
CPAN::Config, such as 'edit' and 'load', presumably everything one needs
to automate the process. Under 'CONFIGURATION' in perldoc CPAN is a
list of the properties that you may configure (or just crack open a
Config.pm that was previously made).
Thoughts?
[url]http://danconia.org[/url]
Okay.
- Perl is installed.
- Nothing has been done to the default install (I have not installed
anything nor even gone into the shell). I am assuming that this means
that CPAN is in a default state as I have that directory in the
installation directory.
- I am not opposed to using a perl script as long as I can use it in
it's default installed state.
- Not being familiar with perl, I did look at the FirstTime script and
became slightly overwhelmed and therefore joined the list.
- Is it possible to drop a previously created Config.pm file into place
without error or repercussion?
- Are you suggesting running or revamping the Config script to suit my
needs?
Thank you for your patience and instruction. I am learning a lot.
Michael
Michael Griffin Guest



Reply With Quote

