This program works correctly in local mode, but stalls in remote mode at present. One possible explanation is that the programmed call to Framemaker does not behave under a cgibin script.
Here is an example of input and corresponding output from the program.