User`s guide

AUDIX Administration and Data Acquisition Package 585-302-502 Issue 17
May 2002
Using the ADAP Command Line Language
11-18Command Line Commands
11
Redirecting Input from Files
Once you have constructed an input file, you can use it to retrieve data. For
example, if you wanted to retrieve records for all subscribers on the voice mail
system, using an input file called dir.dat, you could enter the following command.
getsub < dir.dat > sub.dat
Subscriber extension input is supplied to the getsub command from the dir.dat
file. This file contains the extensions of all subscribers on the voice mail system
and has been formatted correctly by the getdir command. The getsub command
(and all other commands requiring a subscriber extension number) retrieves data
for a subscriber when the subscribers extension number is entered. ADAP writes
each returned subscriber record to the sub.dat file.
Entering Data from the Keyboard
You may enter data directly from the keyboard by including the -i option on the
command line. To indicate that you have finished entering data while in interactive
mode, press , followed by . is the MS-DOS end-of-file (EOF)
character.
For example:
delsub -i
"Doe, John","0123456789"
Output Records
The following section describes the output record format.
Output Record Format
All data items in output records are separated by an output field separator (OFS).
The default OFS is a comma. All character (C), digit sequence (K), and logical (L)
fields are enclosed in delimiting characters when appearing in output records.
NOTE:
Fields that do not exist for a given release of the voice mail system may be
included in output for compatibility with other releases. Those fields contain
a 0 or "".
Ctrl-z
RETURN
Ctrl-z
RETURN
Ctrl-z
RETURN