The submit program copies into a file everything that is displayed in an hpterm window from the time it is started to the time it is halted. One common use of the program is to prepare a log containing the source code for a program and output from one or more test runs.
To start submit in an hpterm window, think up a name for the log file that you want to create (say, frogs.log) and type
submit frogs.log
at the prompt. The file must be one that does not already exist. Instead of overwriting an existing file with the same name, submit will require you to delete that file yourself or to choose a different name for your log file.
The submit program will print a startup line that looks something like this:
Script started, file is /tmp/submit-spelvin
This means that you're now recording.
To display the source code for a program in the hpterm window, use the cat program. Suppose, for instance, that your Scheme program is stored in a file named frogs.ss. You would type:
cat frogs.ss
Don't worry if the file scrolls past too quickly for you to read it. The submit program will catch the whole thing and copy it into your log file.
Give the command to run the program, interacting with it as necessary. In the case of a Scheme program in the file frogs.ss, you might do something like this:
scheme frogs.ss Chez Scheme Version 5.0c Copyright (c) 1994 Cadence Research Systems > (tally-amphibians '(rabbit horse frog banana frog frog tapir)) 3 >
Well, you get the idea. Demonstrate the capabilities of your program in a sufficient number of test cases. You can exit from Scheme, as usual, with <Ctrl/D>.
Press <Ctrl/D> again to shut down submit. You'll get a
two-line acknowledgement:
Script done, file is /tmp/submit-spelvin submit: created log file frogs.log
The file frogs.log now contains everything you need to turn
in.
This document is available on the World Wide Web as
http://www.math.grin.edu/courses/Scheme/spring-1998/using-submit.html
created February 20, 1997
last revised June 21, 1998