1) The script is in use among several machines that my co-worker and I administer on a private network, so, we're not too concerned about that angle. That being said, there's no reason why this script's use needs to be root-only. It's not like normal users cant rsh. You're free to edit to your hearts desire, of course.
2) Pulling the output into a single array allows us a simple way to dump the contents into a separate report, which is what the foreach inside of execRoutine() was used for, originally...something I omitted from the code you're looking at.
3) For our uses, we preferred the results to come back sequentially--The decision not to fork off the rsh calls was an intentional one. Besides, with the limited number of boxes we're adressing, we don't gain much in speed by forking anyway.
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.