Alt-Y vs. :Reflect
Q: Why do some Reflection command files work fine when I execute them from the Alt-Y command line, but go screwy when I execute them using Qedit’s :Reflect command?
A: Qedit’s :Reflect command sends an escape code to Reflection to invoke the command, then Qedit waits for Reflection to send back a status code to indicate when the command is finished. While Qedit is waiting for the result code from Reflection, it isn’t capable of executing other Qedit commands – it’s already executing a Qedit command! The only thing that Qedit is capable of doing while it’s waiting is to execute any MPE commands that Reflection might send to the HP e3000. The reason why MPE commands must be accepted is that Reflection sends a :Run command for PCLINK whenever a file transfer is requested.
As long as the command or command file doesn’t attempt to transmit any data to the HP e3000, :Reflect will probably work the same way as Alt-Y.
For example, here is a Reflection command file that works from Alt-Y, but not from :Reflect.
; BYE ; This command file gets me out of Qedit, logs me off ; the HP e3000 and exits from Reflection. ; transmit "exit^M" wait 0:01:00 for "^Q" transmit "yes^M" wait 0:01:00 for "^Q" transmit "bye^M" wait 0:01:00 for "CONNECT" wait 0:00:05 hardexit