# --------------------------------------- # vpnd modem init chat script (vpnd.chat) # --------------------------------------- # # lines starting with '#' are treated as comment # # possible commands: # # sleep # # goto <failure-target> # # dcdwait <timeout> <failure-target> # # dsrwait <timeout> <failure-target> # # ringwait <timeout> <failure-target> # # send <timeout> <failure-target> <string> # # wait <timeout> <failure-target> <string> # # expect <timeout> <failure-target> <string> # # :<failure-target> # # 'timeout' is the time within the command must complete in seconds, # a minimum of one second must be specified # # 'failure-target' is a jump target at which execution continues if # a timeout occurs, 'done' is a special target that terminates # execution successfully, 'fail' is a special target which # terminates execution with error # # 'string' is a string sent or received which must not contain # any blanks or tabs but which may contain the following # escape sequences: # \\ backslash # \b blank # \t tab # \r carriage return (the enter key) # \n line feed (^j) # # 'sleep' delays execution for a second # # 'goto' jumps unconditionally to the given target # # 'dcdwait' waits for the data carrier detect line of the modem # to be active # # 'dsrwait' waits for the data set ready line of the modem # to be active # # 'ringwait' waits for the ring indicator line of the modem # to be active # # 'send' sends the given string to the modem device # # 'wait' reads lines from the modem device until # a line is read that contains the given string # # 'expect' reads one line from the modem device which # must contain the given string # # ':' is the failure jump target # # you may test a modem init script with the 'vpnd -t [-f <config-file>]' # command