home *** CD-ROM | disk | FTP | other *** search
-
- This file is included at the request of one of our beta testers. It
- describes the previously undocumented (and still unsupported) KSmail
- scripter. It is a combination of the TASL scripter and a subset of the
- Opus/Binkley script language. It is under development and is evolving
- more and more in the direction of the latter.
-
- Try this strictly at your own risk. This may or may not be included
- in the version you now have and may or may not be supported in versions
- to follow.
-
- The method now used is crude, I admit, and inconvenient since it now
- requires a separate .TAM file for each node to be reached via PCP.
- This method will be replaced with a more convenient one Real Soon Now.
-
-
- Two caveats, though, for those of you who want to try this out.
-
- 1. Since your script files will often have your PCP account number and
- password unencoded and in human-readable form, it is advisable to
- make all .TAM files unavailable to your users and to flag them as being
- unavailable for download.
-
- 2. If you use PCP on a second machine while your BBS is in operation,
- keep in mind that any outgoing mail event may cause KSmail to access
- PCP with your account and passwords. To avoid duplicate use and
- subsequent hassles with Big Daddy Telenet, be sure to take steps to
- insure usage will not be duplicated.
-
- Similarly, be sure that all of your mail events are totally contained
- within PCP's non-prime-time.
-
-
- The primary purpose of the scripter is to allow KSmail to send netmail
- by way of PC Pursuit and similar services. If you have a working KSmail
- system and feel like a snappy game of adventure, feel free to try it.
- I know there are some major holes in this. As I said, it is still under
- development.
-
- I haven't spent too much time on this document as I didn't plan on
- supporting the scripter until it was more mature. You might find the
- notes in recent Binkleyterm packages to be of some help as well.
-
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-
- Script files are (currently) noted with the familiar net/node
- designation with the extension .TAM. If the appropriate .TAM file
- is found when a network is to be called, the script is executed in
- lieu of the default dialing mechanism. (crude, I admit)
-
- KSmail scripts are currently a subset of the Opus/Binkley scripts.
- The valid keywords are as follows with restrictions noted.
-
-
- "wait"
-
- ^C during a 'wait' cancels the KSmail session. 'C' (upper or lower)
- during a 'wait' skips the current call and continues with the next.
- (^C may cause a skip; 'C' no effect in some versions.)
-
- The script 'fails' if a wait period expires without a valid match
- or over 10 'tries' at any point in the script are used. A 'try' is
- defined as a matched pattern (BUSY, etc.) that causes a backwards
- jump to a label. (20 tries in some releases)
-
-
- "abort"
-
- Does just that. Time arguments are not permitted.
-
-
- "baud"
-
- Baud rate must be explicitly declared. This should be one of the
- first, if not the first, lines in the script.
-
-
- "carrier"
-
- Aborts if carrier absent. Continues if present.
-
-
- "goto"
-
- 'It's not the GOTOs that get you. It's the COME FROMs.'
-
-
- "if"
-
- Note that KSmail scripts are limited to 10 labels maximum. The label
- may contain up to 10 characters.
-
-
- "pattern"
-
- Up to 9 patterns may be specified. Patterns may be up to 12 characters
- in length. Note that ALL PATTERNS ARE RESET TO NULL FOLLOWING A
- SUCCESSFUL 'IF' JUMP. This follows the TASL and not Opus/Binkley logic.
-
-
- "session"
-
- This should be the last statement in the script. Control is returned to
- KSmail and a FTSC netmail session is attempted.
-
-
- "xmit"
-
-
-
- Rather than rewrite the whole thing, I will direct your attention to the
- current Binkley docs. Please note the differences above.
-
-
-
- EXAMPLE: Here is the script I use for dialing the OZ zonegate (1/3)
- via PCP. It is 00010003.TAM on the disk. It works.
-
-
- baud 1200
- xmit ~~~ATZ|
- pattern 0 CONNECT
- xmit ~ATDT3417733|
- wait
-
- xmit ~|~|~|
- xmit ~d1|
- :city
- pattern 0 CONNECT
- pattern 1 BUSY
- xmit ~~C D/ORPOR/12,PCP00000,ABCD0000|
- wait
-
- if 1 city
- xmit |~I~|
- pattern 0 OK
- xmit ~ATZ|
- wait
-
- :dial
- pattern 0 CONNECT
- pattern 1 BUSY
- pattern 2 NO CARRIER
- xmit ~ATDT2979145|
- wait 60
-
- if 1 dial
- if 2 dial
- session