next up previous contents
Next: Second Example Up: Running AUTO using Python Previous: First Example   Contents

Scripting

Section 4.3 showed commands being interactively entered at the AUTO CLUI prompt, but since the AUTO CLUI is based on Python  one has the ability to write scripts for performing sequences of commands automatically. A Python  script is very similar to the interactive mode shown in Section 4.3 except that the commands are placed in a file and read all at once. For example, if the commands from Figure 4.2 where placed into the file demo1.auto, in the format shown in Figure 4.5, then the commands could be run all at once by typing auto demo1.auto. See Figure 4.6 for the full output.

\begin{figure}
% latex2html id marker 655
{\small\begin{center}\begin{boxedverb...
...ript can be found in {\sf \$AUTO\_DIR/demos/python/demo1.auto}.
}
\end{figure}

\begin{figure}
% latex2html id marker 664
{\small\begin{center}\begin{boxedverb...
...AUTO}~CLUI by typing {auto demo1.auto}
and the output is shown.}
\end{figure}



Gabriel Lord 2007-11-19