Prism 6.0 User's Guide

Executing Commands From a File

As mentioned in " Specifying Input and Output Files", you can specify on the Prism command line the name of a file from which commands are to be read in and executed. You can also do this from within Prism by issuing the source command.

Using the source command lets you rerun a session you saved via the log command. You might also use source if, for example, your program has a long argument list that you don't want to retype constantly.

For example,

source prism.cmds

reads in the commands in the file prism.cmds. They are executed as if you had actually typed them in the command window. When reading the file, Prism interprets lines beginning with a pound sign (#) as comments.

The .prisminit file is a special file of commands; if it exists, Prism executes this file automatically when it starts up. See " Initializing Prism" for more information.