home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / FINET93C.ZIP / SCRIPTS.ZIP / README.1ST < prev    next >
Encoding:
Text File  |  1993-02-01  |  7.6 KB  |  202 lines

  1. ROBOCOMM
  2.  
  3. ROBOCOMM.SCR is a script for ROBOCOMM users to call FINET NETHUB
  4. Follow the instructions at the top and delete them before running it.
  5.  
  6.  
  7. TELIX
  8. FINET.SLT is a script for TELIX.  This file give more information should
  9. you wish to add to that script, and about using pcrelay.
  10.  
  11.  
  12.          MAIL SCRIPT INFORMATION FOR TELIX AND GENERIC
  13.  
  14. Here is sample batch file to use the script:
  15. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16. rem this is a sample batch file which could be used, renaming directory
  17. rem names and the like, to run the telix script.  PCRELAY would be
  18. rem replaced with whatever name you're using.... and drive letters also.
  19. rem this is only one of many ways to do it. I do it several ways...
  20. rem  you may wish to call PCRELAY directory FINET
  21.  
  22.  
  23. @echo off
  24. j:
  25. cd j:\PCRELAY
  26. rem this backs up the lastread.net file which PCRELAY sometimes corrupts
  27. rem if you don't have a backup tape or disk, this will save need to
  28. rem reconfigure all the conferences over again
  29. copy lastread.net lastread.bac
  30. copy lastread.bac j:\pcrelay\save\lastread.2
  31. rem this exports new messages from your bbs to pcrelay transfers....
  32. EXPORT.EXE
  33. c:
  34. cd C:\pcrtelix
  35. rem this is your net-specific Telix directory
  36. rem this is where you might save the relay packet EXPORT created
  37. rem although the provided Telix scripts backs this up
  38. copy node_id.rly j:\pcrelay\save\out.rly
  39. rem this is where telix is run with script.
  40. telix SFINET02
  41. copy IN.RLY g:\pcrelay
  42. rem my script backs this up, but this is how from batch file
  43. j:
  44. cd j:\PCRELAY
  45. rem import messages from new IN.RLY to message bases
  46. IMPORT.EXE
  47. e:
  48. cd\rbbs
  49. rem this is normal bbs directory ready to revoke bbs via batch file
  50. rem you can remove the remark lines if you follow batch files easily
  51.  
  52.  
  53. --------------------------------------------------------------------
  54.  
  55. GENERAL SCRIPT INFORMATION:
  56. --------------------------
  57. FINET.SLT is the provided script for TELIX, though you can use Qmodem,
  58. Robocomm, etc.  This script gives you a choice of using external dsz
  59. zmodem (a better way), or the internal Telix zmodem.  The default is the
  60. RBBS turbo logon, which stacks firstname;lastname;password, etc....
  61. on one fast logon line.  However, if you wish to change passwords, you
  62. will need to re-edit the script and recompile.  The other way, listed in
  63. the script answers each RBBS prompt one at a time. This is a versatile
  64. method and uses the password in the Telix dialing directory. This makes
  65. changing the password easy without recompiling the script. However, the
  66. login time is a bit longer.
  67.  
  68. You need to modify the Telix dialing directory entry number and node_id
  69. name anyway, you have your choice.  Both scripts will back up the
  70. node_id.rly and IN.RLY packets.  In fact, several generations, one from
  71. each mail run, of IN.RLY files are kept for safety.  Timers are running
  72. for make sure that you are not kept on line should something go wrong;
  73. independent timers check login time, upload and download times, and for
  74. carrier.
  75.  
  76. FINET NETHUB only provides the connection; while we try to help with
  77. scripts, that is the relaying sysop's responsibility. Feel free to
  78. modify any of these to customize them for your application. Another node
  79. here uses robocomm with good result.
  80.  
  81.  
  82. sequence for script is basically:
  83. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  84. (from batch file you've run pcrelay "EXPORT")
  85.  
  86. 1  Dial and log in
  87. 1a you might wish to send an <enter> keystroke in case the opening
  88.    screen is unusally long and sends a "continue" more prompt.
  89. 2  at "RST name?" prompt send turbo login sequence (including ";"):
  90.    firstname;lastname;password;!;d;fihub;/G^M
  91.      (where ^M is the <enter> or cr/lf character. this lets you login fast
  92.      using one line and command and log off after done!)
  93. 3  at the "fe64" or "*" zmodem prompt upload your node_id.rly packet
  94. 4  wait for download packet preparation or download zmodem prompt:
  95.    a "*" again or "dd38" and receive zmodem IN.RLY packet
  96. 5  Door drops DTR and logs you off, you execute local "hangup"
  97. 6  back up in.rly packet in comm dir and lastread.net file in pcrelay!
  98. 7  resume pcrelay batch file and issue "IMPORT" command.
  99.  
  100. ------------------------------------------------------------------------
  101.  
  102. Notes on TELIX script to dial into Freedom Infonet RBBS
  103. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  104.  
  105. If your setup (rare) does not delete in.rly before calling out, you can
  106. do this from the batch file or the script.  You can execute DOS commands
  107. from within the script thus:
  108.  
  109. The line to add early in the main script before dialing out! is
  110. observe case:
  111.  
  112.     dos("if exist c:\telix\IN.RLY del c:\telix\IN.RLY",0);
  113.  
  114. however, PCRELAY when successful, always deletes IN.RLY after export.
  115. This would be in case for some reason PCRELAY failed....
  116.  
  117. YOU CAN ALSO ADD SIMILAR LINES TO RENAME IN.RLY TO A BACKUP FILE IN.1
  118.  
  119.  
  120.      dos("if exist c:\telix\IN.RLY rename IN.RLY in.1",0);
  121.  
  122. Script source code needs to be compiled, since SALT is a language.
  123. With Telix' CS.EXE in your path or directory, type
  124.  
  125.      CS scriptname
  126.  
  127. If the script name is finet02.slt, the program will create finet2.slc:
  128.  
  129.      CS FINET
  130.  
  131. The ".SLT extension is implicit, and FINET02.SLC will be created.
  132.  
  133. ----------------------------------------------------------------------
  134. Some advanced script options follow....
  135.  
  136.  
  137. Specifying handshakes and other DSZ parameters in finet scripts
  138.   (a bit more complex but smoother option for the script.....)
  139.           ______________________________________________
  140.  
  141.  
  142. The default script specifies DSZ as letter "D" in external protocol
  143. options in TELIX configuration menu.  If you wish to name the path and
  144. name explicitly, create a "Protocol" string variable as below:
  145.  
  146.  str Protocol[60] = "C:\TELIX\DSZ.COM" ;     // Complete path to DSZ
  147.  
  148. You can also specifiy complete dsz parameters and handshakes as well as
  149. the directory paths by explicitly spelling out the "send" or "receive"
  150. command.  Do this by creating the followsing two variables:
  151.  
  152.  str Send_Command[64] = " port 1 ha slow sz -m C:\TELIX\nodeid.RLY";
  153.  str Recv_Command[64] = " port 1 ha slow rz -m C:\TELIX\IN.RLY";
  154.  
  155. The following two variables specify external dsz rather than internal:
  156.  
  157.    int SendStatus = 1;                // Used for send R/C from DSZ
  158.    int RecvStatus = 1;                // Used for receive R/C from DSZ
  159.  
  160. The following would replace these two code snippets from finet01/02.slt
  161.  
  162.         SendStatus = run( Protocol , Send_Command , 0 ) ;
  163.      // send('Z', "nodeid.RLY");  //this would be internal Telix zmodem
  164.  
  165. would replace the marked line and node_path variable:
  166.  
  167.                 status_wind("Sending Packet",10);
  168. -------->       if (protocol == "D" ) send('D',node_path);
  169.                 else if (protocol == "Z") send('Z',node_path);
  170.                 return;
  171.  
  172. and this:
  173.  
  174.                  delay(2);
  175.          RecvStatus = run( Protocol , Recv_command , 0 );
  176.                //receive('Z', "IN.RLY");  this would be internal Telix zmodem
  177.  
  178. Would replace the marked line and node_path variable for receive
  179.  
  180.           {
  181.                 status_wind("Receiving Packet",10);
  182. -------->       if (protocol == "D" ) receive('D',"");
  183.                 else if (protocol == "Z") receive('Z',"");
  184.                 return;
  185.           }
  186.  
  187.  
  188. You can hard-code the parameters as well for send or receive, e.g.:
  189.  
  190. run( "c:\telix\dsz.com", "port 1 ha on sz c:\telix\node_id.rly", 0);
  191.  
  192. and use in conjunction with "IF" statements, or break up the file names
  193. and file paths into separate variables and combine the strings......
  194.  
  195. Hope this helps for the advanced SALT script programmers out there to
  196. make this script even more powerful!
  197.  
  198.  
  199.  
  200.  
  201. <end of file>
  202.