mk

make a command file

SYNOPSIS

mk file_name

DESCRIPTION

Command files can be created with ordinary text editors or with mk file. The mk command changes the prompt from:

PLOT->

to:

making->

Most commands entered when making a command file are executed normally except for do file. The words "do file" are inserted into the file being made, but that command file is not executed.

Typing ^D or em will terminate the making of a command file.

When modifying or creating command files using an editor, the control characters used by C-PLOT, ^D or ^N, can be inserted using the printing characters ^ and D or N. These characters must appear at the beginning of a line, however.

Issues to pay attention to when writing command files:

The modify-data command gd 7 will not accept input from command files. Subprocesses such as subshells (invoked with u) or functions also will not take input from command files. You can, however, use single-line commands, such as u sleep 10 or fn calc.4 y = sqrt(y) within command files. Fit functions (type 5) have an independent command file capability.

EXAMPLE

mk file_name

SEE ALSO

do em gd fn u