Yes, I will be executing batch files from within Perl, however these batch files or bundles are all silent software installation programs. Some of these batch file (we call them 'GO' scripts here) require some sort of user intervention, but some do not. I want to differentiate between the one that do require manual intervention to the ones that do not. For example :

I might have a batch bundle that is called office2003.go. Inside this batch bundle I will have things like msword.go, excel.go, project.go....etc. when I click on this batch file, a progress bar appears on the screen and a message informing the tasks the go scripts is doing (in this case installing the whole office software suit).

On the other hand, I might have another batch bundle, which is called something like Autoscore.go that installs the Autoscore software. However at some point during the installion, another dialog window might appear requesting further information or it will simple fail.

This is basically what I am trying to achieve, is to distinguish between Go scripts that installs fully without user intervention and other go scripts that either fail out right or will never install untill maual intervension is provided.

If I do this manually it would probably take me months to finish of because I have thousands of these applications or batch bundles

I suppose a good place for me to start would be if I can write a script that runs a batch file and informs whether the batch execution has completed successfully or not.

Mind you some batch file could take few seconds to install and other batch bundles could take hours. so I suppose I have tp rogram some sort of timing threshold knowing that the longest batch bundle would not take more that 6 hours to install.

Thanks

In reply to Re: Re: Running or not running by Anonymous Monk
in thread Running or not running by Anonymous Monk

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.