I have a general question that should be either obvious or a huge hassle.
I have a chunk of code (system health scripts) that I need to run, which have a bunch of pm files, which in turn also have a tree of modules. Of course the PMs are scattered all over the filesystem.
I need to run these scripts on machines that won't have the same file structure/OS every day. The working assumption is that perl will be available regardless.
I was wondering if there was a way to turn the code into one big chunk of a perlcode, bytecode, or executable. that doesn't need pm's to be in some specific spot to work. pretty much I want to scp the file to a location and run it.
I'll need a reasonable method to re-pack as the scripts backends are changing. As the code might need a new pm that is a few levels deep in the tree.
Thank you for your patience.
Storm
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.