Avaya Writing Technician Interface Scripts Manuel d'utilisateur Page 21

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 116
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 20
Creating a Script File
308660-14.00 Rev 00
1-5
Prompting for Input
The input prompt variable allows you to create a prompt that accepts user input
from the Technician Interface console. The syntax of the input prompt variable is
$
<prompt_string>
. The Technician Interface prompts the user with the message
you entered between the brackets (< >). In the following script,
setenv ans “$<Enter your name: >”
echo “Your name is $ans”
Enter your name:
appears on the user’s console. After the user enters a value, the
Technician Interface substitutes the value for
ans
and displays the message Your
name is
followed by the name entered by the user.
For instructions on using the
setenv
command and the
echo
command, see
Chapter 2.
Polling the Console for Input
You can specify how much time a user has to respond to a prompt (that is, to press
Return) before the system times out. If you do not specify a timeout value, the
system prompts the user for input until the user responds.
To specify a timeout value, enter the following command, where
<value_in_seconds>
is the length of time, in seconds, that the system will wait for
a response before timing out.
let SYS_IO_TIMEOUT = <value_in_seconds>
The timeout value cannot exceed the timeout specified by one of the following
MIB objects: wfSerialPort.wfSerialPortTimeOut.0 or
wfTelnet.wfTelnetSerialPortTimeOut.0. For example, if you specify a timeout of
600 seconds and the timeout specified by wfSerialPort.wfSerialPortTimeOut.0 = 5
minutes, the system uses the timeout value given by
wfSerialPort.wfSerialPortTimeOut.0.
For instructions on using the
let
command, see Chapter 2.
Vue de la page 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 115 116

Commentaires sur ces manuels

Pas de commentaire