Avaya Writing Technician Interface Scripts Manuel d'utilisateur Page 26

  • 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 25
Writing Technician Interface Scripts
1-12 117382-A Rev. A
Writing Messages to the Console
The Technician Interface provides two commands to display messages on the
console:
Use the
echo command to display command line arguments to the user’s
terminal.
Use the
printf command to convert, format, and print input arguments on the
Technician Interface’s console.
For details on each of these commands, see Chapter 2.
Saving Console Messages to a File
To save to a file all messages that are written to the console terminal, use the
record command.
The record file must be opened before recording, and the file must be closed when
recording is completed. The file will be lost if it is not closed before the file
system is unmounted or the router is reset.
For specific instructions on using the
record command, see Chapter 2.
Performing Error Recovery
To specify an error handler label within a script file, use the on error command. If
a command returns an error or if you attempt to abort the script file, the script
interpreter goes to the error handler label defined in the file. If you press Ctrl-c to
abort the script, the Technician Interface displays the following prompt:
Terminate script file? (y/n):
You can use the on error command with the -s flag to allow the script to recover
without returning an error message if the
on error command cannot locate a
specified script file. The following example shows the
on error command with the
-s flag:
on error -s :ERROR_HANDLER:
For more information about the on error command, see Chapter 2 in this manual.
Vue de la page 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 115 116

Commentaires sur ces manuels

Pas de commentaire