Thanks for everyone's replies. I ended up just parsing the install file and grabbing the hash (it only ended up only being one). I needed.

Here's the code that does it in case this can help out anyone else:

my %SERVICE; open (INSTALL, "install.pl") or die "$!"; while (<INSTALL>) { if (/my\s+%SERVICE\s+=\s+\(\s*$/) { $read = 1; next; } # just in case there are some values on the first line if (/my\s+%SERVICE\s+=\s+\(\s*"([^"]+)"\s+=>\s+"([^"])\s*,/) { print "\t\"$1\"\t=> \"$2\",\n"; $SERVICE{$1} = $2; $read = 1; next; } if ($read) { # if there's something on the last line of the hash if (/"([^"]+)"\s+=>\s+"([^"])\s*\)\s*;/) { $service .= + $1; last; } # if there's not if (/([^\)]\));/) { $service .= $1; last; } # or if we're not on the last line grab the values if (/"([^"]+)"\s+=>\s+"([^"]+)"\s*,\s*$/) { $SERVICE{$ +1} = $2 } } } close INSTALL;
Basically the hash is a list of services that get disabled in the /etc/rc.d directories. For example, here's one line:
"/etc/rc2.d/S88sendmail" => "Sendmail",

Again, thanks everyone.


In reply to Re: require without the exec by melguin
in thread require without the exec by melguin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.