<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Vorländer wrote:
<blockquote
 cite="mid097427ddb2c9dc59eb993da36cea4b9346f10a44@pdv-systeme.de"
 type="cite">
  <pre wrap="">Vince Mulhollon wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hittner, David T. wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">What may have to happen is someone might have to write a 
framework that starts up the simulator in a subprocess
and monitors the subprocess(es), and then gracefully shuts
the simulator down after all the tests pass.
      </pre>
    </blockquote>
    <pre wrap="">Sounds like the definition of "expect".

expect.nist.gov
or
en.wikipedia.org/wiki/Expect

It's 20 years old, very well documented, and well debugged.
It's trivial to install on any usable operating system, just
apt-get install expect
or as appropriate for your distribution.
I understand they have ports for legacy OS's like windows, etc.

It would be a shame to reinvent expect in Perl.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Someone already did it:
<a class="moz-txt-link-freetext" href="http://search.cpan.org/~rgiersig/Expect-1.21/Expect.pod">http://search.cpan.org/~rgiersig/Expect-1.21/Expect.pod</a>

cu,
  Martin
  </pre>
</blockquote>
I use expect to run a few of the Interdata 32 bit diagnostics on SIMH.
The setup (building the command file) is a bit tedious, but once done
it works well.<br>
</body>
</html>