Avaya Writing Technician Interface Scripts Manual do Utilizador Página 20

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 116
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 19
Writing Technician Interface Scripts
1-4
308660-14.00 Rev 00
Local, Global, and System Variables
When you first define a variable, the computer stores it in the local environment
variable table. Local variables are only accessible from within the script in which
they were created. You cannot access them from another script file. When a script
routine ends, any local variables that you defined are automatically deleted.
Global variables are stored in the global environment variable table and may be
accessed by any script file. You create global variables by using the
export
command to change a local variable to a global variable. For more information
about the
export
command, see Chapter 2. Global variables are not automatically
deleted when a script file ends.
System variables, which are read-only, are created only during a Telnet session.
You cannot have the same variable name in the local and the global variable
tables. You can delete local and global variables by using the
unsetenv
command.
You can also change the value of a global variable by using any of the set variable
commands (
arrayenv, cutenv
,
enumenv
,
instenv
,
let, mi/jointfilesconvert/95481/bget
,
setenv
, or
sprintf
). For more information about these commands, see Chapter 2.
Special Variables
This section describes how to use input variables, how to prompt for user entry
from the console, and how to access and format information from the MIB.
Input Parameters
The Technician Interface reserves the following variables as input parameters for a
script file:
$1
,
$2
,
$3
,
$4
,
$5
,
$6
,
$7
,
$8
,
$9
and
$#
. The special variable
$#
contains the number of parameters entered on the command line following the
script file name. It is set to zero if no parameters are entered. For more
information about input parameters, see “
run
” in Chapter 2.
Note:
The value of a variable in the local or global table takes precedence over
a variable with the same name in the system variable table.
Vista de página 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 115 116

Comentários a estes Manuais

Sem comentários