home *** CD-ROM | disk | FTP | other *** search
/ The Best Internet Programs / BESTINTERNET.bin / latest / snup105 / sample.hst < prev    next >
Encoding:
INI File  |  1995-01-16  |  2.6 KB  |  104 lines

  1. [Settings]
  2. Comment=This is a sample Host
  3. Phone=
  4. Emulation=5
  5. Speed=5
  6. DataBits=1
  7. StopBits=0
  8. Parity=0
  9. Prompt=$
  10. GetFile=sz -b {filename}
  11. SendFile=rz -b
  12. Protocol=5
  13. www=lynx
  14. Interrupt=^C
  15. Timeout=50
  16. TickleHost=-1
  17. HostInit=0
  18. UNIXLSColumn=0
  19. IsManualLogin=0
  20. ManualTimeout=45
  21. IsBusyRedial=-1
  22.  
  23. [login]
  24. n=71
  25. l1=# Please read the Help information on Login scripts
  26. l2=#   by pressing the "Help" button in the Host screen.
  27. l3=# There are some important issues discussed
  28. l4=#   there concerning C-shell use.
  29. l5=
  30. l6=# This is a sample LOGIN script
  31. l7=# -------------------------------------------------------------
  32. l8=# Anything following the "#" comment symbol
  33. l9=#   is ignored
  34. l10 send "^M"
  35. l11=# Valid script commands are:
  36. l12=#   dial
  37. l13=#   hangup
  38. l14=#   send "string"        # see notes below on strings
  39. l10=
  40. l15=#   send loginid
  41. l16=#   send password
  42. l17=#   send break
  43. l18=#   waitfor "string" nseconds
  44. l19=#   waitfor connect nseconds
  45. l20=#   waitfor prompt nseconds
  46. l21=#   delay nseconds
  47. l22=#   send "string1" waitfor "string2"  nseconds retry ntimes
  48. l23=#   send break waitfor "string" nseconds retry ntimes
  49. l24=#   input
  50. l25=#   input "prompt string"
  51. l26=
  52. l27=# Note on "strings":
  53. l28=#    strings can contain control keys
  54. l29=#         control keys are preceded by "^"
  55. l30=#    For instance, to send a Control-D:
  56. l31=#         send "^D"
  57. l32=#    More importantly, to send the string: "exit" followed
  58. l33=#        by a carriage return:
  59. l34=#        send "exit^M"
  60. l35=
  61. l36=# Examples of the retry commands:
  62. l37=# -------
  63. l38=#  send "^M" waitfor "login" 5 retry 10
  64. l39=#       means: send a carriage-return and wait for string "login" for 5 seconds
  65. l40=#       and retry this operation 10 times
  66. l41=
  67. l42=# The input command will pause and allow you to
  68. l43=#       input a string that will be sent immediately
  69. l44=#       This is useful for creating a login script
  70. l45=#       that allows for changing conditions.
  71. l46=
  72. l47=# =================================
  73. l48=#  Sample login script follows
  74. l49=# =================================
  75. l50=
  76. l51=dial
  77. l52=
  78. l53=waitfor connect 30
  79. l54=
  80. l55=delay 3    # give the host 3 seconds breathing room
  81. l56=
  82. l57=send "^M" waitfor "ogin"  3  retry 5
  83. l58=
  84. l59=#Notice that we wait for "ogin" instead of "login:"
  85. l60=#because the prompt on some systems is "Login" and on some it's "login"
  86. l61=
  87. l62=send loginid
  88. l63=send "^M"     # be sure to send the carriage-return
  89. l64=
  90. l65=waitfor "ssword" 20
  91. l66=send password
  92. l67=send "^M"
  93. l68=
  94. l69=waitfor prompt 30
  95. l70=
  96. l71=# ====================================
  97.  
  98. [logout]
  99. n=3
  100. l1=# This is a sample LOGOUT script
  101. l2=send "exit^M"
  102. l3=hangup
  103.  
  104.