Dear and beloved monks, greetings to you of the highest order.

Ouch, it has been a long day and sorry for the title of this post.

Question: Is there away that I can detect whether a script that I call from within my Perl script has triggered a win32 message box?

The reason is, I am calling a number of 'GO' scripts or (.exe)s from within my Perl script. All those scripts are software installation programs. Some will install successfully and some - I suspect - will not. The ones that will NOT install successfully will display a windows massage indicating a failure has occurred. The text in this windows message box is standard text (i.e. appears when ever a Go script fails) and always display the critical red cross sign. Basically I need to detect this activity and flag the scripts that have failed. Simple!!

Thanks

In reply to detecting activities of scripts by blackadder

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.