Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Dear Monks,

probably my question is offtopic to perlmonks. however..

iīm meditating about comparing two linux vmīs {A,B} which are widely identic with a perl script {S}. even there is any mismatch in configuration or even filesystem issue (ONLY OS relevant files) the script should rewrite several parts of the system A in system B to get them identic. If D={any difference} the Algorithm should do this:
Bx{A,D}->S->B/D --> B=A
i suppose that a trivial comparison of each file is not the way to go. are there any modules which support this task or perhaps you got any ideas above comparing any config files?
one of the main characteristics is velocity...
donīt know if there is any solution in perl with good performance..?!

the idea behind this: every time i set up a new vm or even a user crashs e.g. server configurations on a vm i want to (r)sync(??) this vm with a still configured second vm lying down reachable in a network.

$perlig =~ s/pec/cep/g if 'errors expected';

In reply to Perlscript to sync two linux OSīs by AlexTape

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-20 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found