Hello,
As a part of a software startup test, I need to automate the following:
- Install the new rpm build
- Run a sql script against a database (and parse its output to ensure that no unexpected errors were thrown)
- Run a shell script that is interactive
- Run a perl script that returns some output.
- Parse the output of this perl script to ensure that the expected information is returned.
What is the best way to achieve these tasks sequentially?
Can I use a combination of something like expect (run interactive shell script) and system commands (install rpm etc).
I'm not sure what to do to grep the output of the perl script / run the perl script (system() again?). Are there some perl modules from cpan that you would recommend to use for this task?
I'm feeling slightly overwhelmed and lost...
Thanks!
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.