File: executecommand.htm

package info (click to toggle)
extrema 4.3.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,212 kB
  • ctags: 6,452
  • sloc: cpp: 86,428; sh: 8,229; makefile: 814
file content (62 lines) | stat: -rw-r--r-- 2,698 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<HTML>
<HEAD>
<TITLE>EXECUTE command</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<P><A NAME="executecommand"></A>
<font size="+3" color="green"><B>EXECUTE command</B></font></P>

<TABLE border="1" cols="2" width="608">
<TR>
<TD width="15%" valign="top"><B>Syntax</B>:</TD>
<TD width="85%" valign="top"><CODE>
EXECUTE filename { p1 p2 ... }<BR />
@filename { p1 p2 ... }</CODE></TD>
</TR><TR>
<TD width="15%" valign="top"><B>Defaults</B>:</TD>
<TD width="85%" valign="top">the default filename extension is 
<CODE>.pcm</CODE></TD>
</TR><TR>
<TD width="15%" valign="top"><B>Examples:</B></TD>
<TD width="85%" valign="top"><CODE>
EXECUTE somefile.pcm<BR />
@somefile 1.2 'Character string' X Y</CODE></TD>
</TR>
</TABLE>
<P>
 This command causes program input to come from a command script file,
 instead of from the keyboard. When the end of file is reached, input will
 again be expected to be entered from the keyboard, or from a calling script
 file. You may have up to <CODE>20</CODE> nested script files. The 'at'
 sign, <CODE>@</CODE>, is equivalent to '<CODE>EXECUTE</CODE>'. Within script
 files, it is possible to have labels, <CODE>GOTO</CODE> statements,
 <CODE>IF...THEN</CODE> blocks, and <CODE>DO</CODE> loops.</P>
<P>
 Numbered parameter zero, that is, <CODE>?0</CODE>,
 in a script always is replaced by the file name of the script.  Use the
 <CODE><a href="../Functions/StringManipulation/string.htm">STRING</a></CODE> function to
 convert it to a quote string. For example:</P>

 <font color="blue"><PRE>
 DISPLAY 'executing script file = '//STRING(?0)</PRE></font>
<P>
 If the file name is entered without a filename extension, the current
 extension is automatically appended to the filename. The default script
 file extension is <CODE>.pcm</CODE>&nbsp;&nbsp;
 The <a href="../Characteristics/FileRelated/extension.htm"><CODE>SCRIPTEXTENSION</CODE></a>
 characteristic controls the file extension.</P>
<P>
 If <CODE>filename</CODE> is a text variable, it is first replaced by its value.</P>
<P>
<a href="comments.htm"><font size="+1" color="olive">Comments</font></a><br />
<a href="echolines.htm"><font size="+1" color="olive">Echo Lines</font></a><br />
<a href="keyboardinput.htm"><font size="+1" color="olive">Keyboard Input</font></a><br />
<a href="abort.htm"><font size="+1" color="olive">Abort</font></a><br />
<a href="parameters.htm"><font size="+1" color="olive">Parameters</font></a><br />
<a href="branching.htm"><font size="+1" color="olive">Branching</font></a><br />
<a href="looping.htm"><font size="+1" color="olive">Looping</font></a><br />
<a href="ifthen.htm"><font size="+1" color="olive">Conditional statements</font></a>
</P>
</BODY>
</HTML>