Chapter 11: Programming Amanda
79
Tracing Token Execution
Amanda’s trace files can let you know where and how a token program is failing. This is
an invaluable debugging tool.
Amanda creates trace files as she runs, because the following trace command should be in
the AUTOEXEC.BAT file.
amanda /t5 /s1300
Like the default trace command, this command creates C:\AMANDA\TRACE.OUT file
and limits its size to the last 1.3MB of data. (A file this size will fit on a 3 1/2-inch floppy
disk.) What is different about this command is that it writes to the trace file every 10 lines.
In this way, if Amanda crashes while running your token program, no more than ten lines
of trace information can be lost. You can use /t with a number less than 10 if you need to,
but it will slow down the system.
You can also display trace information on-screen.
To display trace information:
1.
Press Ctrl+Home.
2.
Press Alt+T.
Pressing any key stops the display. On-screen traces are stored by default in
C:\AMANDA\SCREEN.OUT. To change the name of this file, use the Setup utility to
change the setting for the configuration option screen_save.
Kinds of Tokens
Tokens fall into the following categories:
•
Literals
•
Variables
•
Commands
Literals
A literal is an exact value such as the whole numbers 4 or 1144. Notice that you do not use
commas within numbers. You use 1144—not 1,144.
The DTMF digits and most single-character tokens are literals. For example, the comma
(,) that causes a pause is a literal.
Another type of literal is the string. In the Token Programming Language (as in most
programming languages), a string is a sequences of characters. For example, JAMES
DOLE is a 10-character string that starts with the letter J and ends with the letter E. To
clearly show where a string begins and ends, programming languages require delimiters
(characters that enclose the string, but are not part of it. In the Token Programming
Language, you use single or double quotation marks as string delimiters. So JAMES
DOLE becomes
'JAMES DOLE'
or
"JAMES DOLE"
.
Содержание [email protected] Version 3.xx
Страница 1: ...Installing AmAndA Work Place Version 3 xx Installer s Guide Edition 7 01...
Страница 4: ...iv Installing Amanda Work Place...
Страница 60: ...52 Installing Amanda Work Place...
Страница 68: ...60 Installing Amanda Work Place...
Страница 132: ...124 Installing Amanda Work Place...
Страница 150: ...142 Installing Amanda Work Place...
Страница 156: ...148 Installing Amanda Work Place...
Страница 194: ...186 Installing Amanda Work Place...
Страница 206: ...198Installing Amanda Work Place...