<div><div dir="auto">Try using expect(1).   Write an expect script to do the basic boot.  That will no matter the os or simulator.   Once you get to the point you want you can give control back to the terminal.   </div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 21, 2019 at 7:03 PM Tom Perrine <<a href="mailto:tom.perrine@gmail.com">tom.perrine@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>So far I've got Multics, V7 and BSD4 running on SIMH in Google Cloud Platform (GCP). I'm packaging some of these up into more turnkey images and scripts so that more people can easily play with these Grand Olde Operating Systemes.</div><div><br></div><div>My end goal is a script that can be run on your local computer that creates the cloud instance, installs and upgrades the OS, compiles SIMH for the target HW, and boots the guest OS, all without any needed input. I've got everything EXCEPT how to kick the OS boot in the OS bootloader(s).</div><div><br></div><div>My problem is that I probably haven't spent enough time with the docs to figure out how to feed scripts "past" SIMH and into the bootloaders.</div><div><br></div><div>I'd also love to be able to inject commands into the SIMH process through the API, but that's a different story.</div><div><br></div><div>For example, the PDP-11 V6 boot looks like this:</div><div><br></div><div><span style="display:block;color:rgb(255,255,255);font-family:"courier new",monospace;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap;background-color:rgb(34,34,34)"><span style="color:rgb(0,186,19);font-weight:bold">test-pdp11</span>:<span style="color:rgb(114,159,207);font-weight:bold">~</span>$ !80</span><span style="display:block;color:rgb(255,255,255);font-family:"courier new",monospace;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap;background-color:rgb(34,34,34)">simh-master/BIN/pdp11 dboot.ini </span><span style="display:block;color:rgb(255,255,255);font-family:"courier new",monospace;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap;background-color:rgb(34,34,34)"></span><span style="display:block;color:rgb(255,255,255);font-family:"courier new",monospace;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap;background-color:rgb(34,34,34)">PDP-11 simulator V4.0-0 Current        git commit id: d40268d1</span><span style="display:block;color:rgb(255,255,255);font-family:"courier new",monospace;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap;background-color:rgb(34,34,34)">Disabling XQ</span><span style="display:block;color:rgb(255,255,255);font-family:"courier new",monospace;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap;background-color:rgb(34,34,34)">@</span><span style="display:block;color:rgb(255,255,255);font-family:"courier new",monospace;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap;background-color:rgb(34,34,34)"><br></span><span style="display:block;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap"><font color="#000000" style="background-color:rgb(255,255,255)" face="arial, sans-serif">Now how do I get scripted input into the simulator so that I can give the bootloader the "unix" filename at the @ prompt?  I have the same problem with the Multics bootloader, too.</font></span><span style="display:block;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap"><font color="#000000" style="background-color:rgb(255,255,255)" face="arial, sans-serif"><br></font></span><span style="display:block;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap"><font color="#000000" style="background-color:rgb(255,255,255)" face="arial, sans-serif">Clearly I'm not being smart this week.</font></span><span style="display:block;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap"><font color="#000000" style="background-color:rgb(255,255,255)" face="arial, sans-serif"><br></font></span><span style="display:block;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap"><font color="#000000" style="background-color:rgb(255,255,255)" face="arial, sans-serif">Ideas?</font></span><span style="display:block;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap"><font color="#000000" style="background-color:rgb(255,255,255)" face="arial, sans-serif"><br></font></span><span style="display:block;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap"><font color="#000000" face="arial, sans-serif">--tep</font></span><span style="display:block;font-size:13px;font-variant-ligatures:none;white-space:pre-wrap"><font color="#000000" face="arial, sans-serif"><br></font></span></div></div>
_______________________________________________<br>
Simh mailing list<br>
<a href="mailto:Simh@trailing-edge.com" target="_blank">Simh@trailing-edge.com</a><br>
<a href="http://mailman.trailing-edge.com/mailman/listinfo/simh" rel="noreferrer" target="_blank">http://mailman.trailing-edge.com/mailman/listinfo/simh</a></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Sent from a handheld expect more typos than usual</div>