<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.4186" name=GENERATOR><o:SmartTagType 
downloadurl="http://www.microsoft.com" name="PersonName" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
PRE {
        FONT-SIZE: 10pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=FR-CA vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=385065520-22012008><FONT face=Arial 
color=#0000ff size=2>Another possibility is to use multiple tape drives, with 
the extra tapes premounted, and switch to next tape drive.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=385065520-22012008><FONT face=Arial 
color=#0000ff size=2>Wasn't BACKUP modified at some point to take a list of 
tape drives that it would use sequentially?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=385065520-22012008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=385065520-22012008><FONT face=Arial 
color=#0000ff size=2>Yet another possibility might be to modify the TELNET 
subsystem to give you a tape change prompt when issued a <break> or some 
other special command.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=385065520-22012008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=385065520-22012008><FONT face=Arial 
color=#0000ff size=2>Dave</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> simh-bounces@trailing-edge.com 
  [mailto:simh-bounces@trailing-edge.com] <B>On Behalf Of </B>Boucher, 
  François<BR><B>Sent:</B> Tuesday, January 22, 2008 2:09 PM<BR><B>To:</B> 
  simh@trailing-edge.com<BR><B>Subject:</B> Re: [Simh] attaching a tape virtual 
  file without stopping simulation<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV class=Section1><PRE><FONT face="Courier New" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt">>><I><SPAN style="FONT-STYLE: italic"> How can I attach a tape virtual file to the TQ0 simulated device in simh <o:p></o:p></SPAN></I></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt">>><I><SPAN style="FONT-STYLE: italic"> without stopping simulation with CTRL-E ?<o:p></o:p></SPAN></I></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt">>You can't, but you do have 20 seconds to do it before the system(s) will <o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt">>crash with a CLUEXIT bugcheck. When I was doing some experiments, I was <o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt">>able to unload and load tapes in the SIMH console within the 20 second <o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt">>period.<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN lang=EN-CA style="FONT-SIZE: 10pt">>You can also change the SYSGEN parameter RECNXINTERVAL to have a larger <o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">>timeout.<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">>--Marc<o:p></o:p></SPAN></FONT></PRE>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P><!--endarticle-->
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Marc, you are 
  great!<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I knew i had a bit of time to do 
  the job before the crash happens. This 20s time frame is about 
  the<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">same also about disks that are 
  being attached/detached in SIMH while stopping simh.  The major drawback 
  is that it implies<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">a human has to mount the tape 
  file, and that human has a limited amount of time before the crash will 
  happen.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In the place where I work, where 
  we still have computer operators,  I would prefer an automated 
  attach<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">process… 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I will try the solution of 
  modifying RECNXINTERVAL anyway to increase it’s time.  Thanks for your 
  suggestion.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I am also inclined of checking if 
  I can get simh by changing source code to automatically 
  always<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">attach itself to a given file 
  name, but when it detaches itself, to make it rename the virtual tape 
  file,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">so the tape file does not get 
  overwritten.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In pseudo-code, this would be my 
  idea:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Let’s say tape.tap is the virtual 
  tape file. And let’s create a simh variable say sim_auto_attach wich 
  could<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">be TRUE (tape will always have a 
  virtual file in it) or FALSE (actual behaviour).<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In 
  sim_detach(),<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Run function as usual, detach tape 
  metafile from tape device.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">If simh parameter sim_auto_attach 
  == TRUE, then  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Rename tape.tap to tape#.tap where 
  # is a unique number (date and time?)<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">call  sim_attach() with the 
  tape.tap file as the target file argument.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Return()<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It could also be possible to 
  create a parameter with the auto-attach file name, instead of the tape.tap 
  constant.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">A little auto-critic on my above 
  solution is that this is good for WRITING backup savesets to the 
  tape.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It is not usable for 
  restoring.  Another virtual tape drive has to stay manually controllable 
  to attach/detach<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">the virtual tape file. 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Brian Knittel also makes a very 
  interesting solution, to have at long time intervals (ie .1sec) the simh 
  check<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">for the existence of a command 
  file that contains commands to attach/detach files.  This command file 
  could be written<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">With the same syntax as vax.ini 
  for example, and it contents be executed by the do_cmd() function from 
  simh.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">This would be a great solution to 
  my RESTORATION process, when one would need to have a tape 
  attached<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">for reading purposes.  
  Brian’s solution is more universally applicable, but might need more human 
  interventions,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">than the auto_attach 
  modification.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks again, Marc and Brian, I 
  value your inputs very much!<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Best 
  regards,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><st1:PersonName w:st="on" 
  ProductID="Francois Boucher"><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Francois 
  Boucher</SPAN></FONT></st1:PersonName><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> ing.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>