[32534] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3799 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Oct 19 03:09:19 2012

Date: Fri, 19 Oct 2012 00:09:03 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Fri, 19 Oct 2012     Volume: 11 Number: 3799

Today's topics:
    Re: oracle tool script <rweikusat@mssgmbh.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Thu, 18 Oct 2012 18:28:22 +0100
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: Re: oracle tool script
Message-Id: <87hapradvt.fsf@sapphire.mobileactivedefense.com>

herbert.burnswell@gmail.com writes:
> I want to put together a perl script to use as an administrative
> tool for configuring Linux systems for Oracle installs.  Ideally
> I'll enhance the script with time but right now I'd like to start
> with checking of kernel parameters.
>
> I'm thinking of:
>
> `sysctl -a` ---> into a hash splitting on ' = '
>
> Can anyone offer any advise on how I would go about doing the above?

I did some off-and-one thinking about this and came the conclusion
that I would prefer doing this the other way round -- instead of
putting all kernel parameters into a hash and then checking some of
them (and possibly, changing them in some required way), I would
create a hash whose keys were the systcl parameter names I was
interested in and the corresponding values would be references to
(anonymous) subroutines performing 'the operation', whatever it was. I
would then go through the `sysctl -a` output line by line, splitting
each lines into a 'parameter name' and a 'parameter value', look for
the name in my 'interesting parameters' hash and execute the
subroutine associated with that with the value as argument (or with
name and value when using the same subroutine for more than one
parameter would make sense).


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 3799
***************************************


home help back first fref pref prev next nref lref last post