begin !<connect_local_host>

external database connect...complete

show !<query=%1-ILF>

reading files on "c:/"  ...complete

Data Capture Successful

begin !<erase_local_host_files "$dir">

erase local files on "c:/"

#Terminator = CR LF;
ReplyTimeout = 80000; #
ReadTimeout = 1000;   #

# note the field access
ai {
    out 170 129 00 129;
    in "%*3c%#R%*1c";
}

cot.db:
# process this record to reload all stream protocols

record (ai, "$(PREFIX):ai")
{
    field (DESC, "An analog value")
    field (DTYP, "stream")
    field (INP,  "@example.proto ai terminal")
#    field (PREC, "3")
#    field (LINR, "LINEAR")
#    field (ESLO, "0.000305180437934") # 20.0 / 0xffff
#    field (EOFF, "-10")
#    field (EGU,  "V")
    field (SCAN, ".5 second")
}

my example.cmd file:
#!./streamApp

dbLoadDatabase "O.Common/streamApp.dbd"
streamApp_registerRecordDeviceDriver

#where can protocols be located?
epicsEnvSet "STREAM_PROTOCOL_PATH", ".:protocols:../protocols/"

Process Complete

begin !<shut_down> -now