home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / TOP / USR / MAN / mmon.prf < prev    next >
Text File  |  2009-11-06  |  13KB  |  501 lines

  1. .he //MMon//
  2. .fo //- # -//
  3. .po 5
  4. .rm 70
  5. .ps 72
  6. .m1 1
  7. .m2 2
  8. .m3 2
  9. .m4 7
  10. .ec \
  11.  
  12. .skip 10
  13. .ce 4
  14. MMon
  15. a special timesharing montior for
  16. different types of connections over
  17. several lines
  18. .page
  19. .cl 0 1. Introduction
  20. .ul
  21. 1. Introduction
  22.  
  23. .in +2
  24.     In a multiuser enviroment it is neccesary that every user can
  25. identify as a unique user of the system. This task is done by
  26. .bold
  27. logon
  28. or others. But there are several conditions to start logon. On a direct
  29. connected line logon should be started at once without hitting the
  30. RETURN key. On a modemline it should be started after a connection has
  31. been established. To ensure that logon is started at the right time you
  32. need a timesharing monitor. MMon can be frreely configured to the most
  33. thinkable problems so you can use one program for different types of
  34. connections.
  35. .in -2
  36.  
  37. .cl 0 2. Installing MMon
  38. .ul
  39. 2. Installing MMon
  40.  
  41. .in +2
  42.     Several steps are neccesary to install MMon correct. You have to
  43. install the
  44. .bold
  45. Sysinfo-Database
  46. (available by TOP-Munich) where you have to add some lines. The
  47. configuration file is normally placed in /dd/SYS and called mmon.config.
  48. If you like to change this insert a line like
  49. .nj
  50. .nf
  51. .ti +5
  52. mmon.config,s=<fullpath>
  53. .justify
  54. .fill
  55.     where <fullpath> is a valid absolute filename for the
  56. configuration file. For every device you want to use you have to insert
  57. two lock-entries in sysinfo, like this:
  58. .nj
  59. .nf
  60. .in +5
  61. <device>,l
  62. mmon.<device>,l
  63. .in -5
  64. .justify
  65. .fill
  66.     The <deivce> entry is used by lines which are used for dialin
  67. and dialout. With the locking features of sysinfo you can realize this
  68. very easy and effective. But what is to do if you want to stop the mmon
  69. completely but you only the device on which it is running? For this the
  70. second entry is used. When locking mmon.<device> mmon makes its cleanups
  71. an dies.
  72.  
  73.     What else to do? You have to copy mmon to an execution directory
  74. and create the configuration file. This will be discussed now.
  75. .in -2
  76.  
  77. .cl 0 3. Configuration and Commandline Options
  78. .ul
  79. 3. Configuration and Commandline Options
  80.  
  81. .in +2
  82.  
  83.     You have a lot of features to configure in the configfile.  A
  84. lot of them can be overwritten by commandline options.  So when you can
  85. do this the option is discussed when the feature is discussed.  The file
  86. is organized in blocks, each block is introducted by the device for the
  87. block and ended with the next device (or the end of the file).  The
  88. device name follows the whole configuration.  Every configuration part
  89. needs one line and must be indent by one or more spaces or tabs.  Now
  90. all entries in detail.  The poosible commandline options are set in
  91. brackets and written in the term (CLO: <opts>) where <opts> for the the
  92. option in the commandline stands.
  93.  
  94. .in +2
  95. .cl 1 3.1. is_modem
  96. 3.1. is_modem (CLO -m)
  97.  
  98. .in +2
  99.     This tells MMon that there is a modem (or something like this)
  100. is connected to this line. So MMon knows not to start logon at once but
  101. to wait for a successful connection. Possible values are true and false
  102. (further referd as a boolean expression.)
  103. .in -2
  104.  
  105. .cl 1 3.2. init_modem
  106. 3.2. init_modem (CLO -m=<string>)
  107.  
  108. .in +2
  109.     There is a default init string for a HAYES 1200 compatoble modem
  110. in the program. If you need another init string, then you can set it
  111. here. There are some escape-codes supported, all starting with a
  112. backslash and followed by a letter. 'r' and 'n' sends a CR, 'l' a LF,
  113. 't' a TAB and 'd' stands for 1 sec. delay. This string is only send when
  114. starting MMon (or if the device had been used by some other programs.)
  115. .in -2
  116.  
  117. .cl 1 3.3. init_modem_no_attach
  118. 3.3. init_modem_no_attach (CLO -m=<string>)
  119.  
  120. .in +2
  121.     This like init_modem, but used when no atach/detach should take
  122. place.
  123. .in -2
  124.  
  125. .cl 1 3.4. escape_to_command
  126. 3.4. escape_to_command
  127.  
  128. .in +2
  129.     Normally MMon detachs a device to force DTR to go low and the
  130. modem hangs up and return to command mode. If your driver doesn't
  131. support this or you work with no atach/detach then MMon needs this to
  132. return to command mode.
  133. .in -2
  134.  
  135. .cl 1 3.5. reset_modem 
  136. 3.5. reset_modem (CLO -r=<string>
  137.  
  138. .in +2
  139.     When MMon cleans up to exit (or to free the device for another
  140. program) it sends a reset string to the modem to ensure that it returns
  141. to a defined state.
  142. .in -2
  143.  
  144. .cl 1 3.6. reinit_modem
  145. 3.6. reinit_modem
  146.  
  147. .in +2
  148.     After a hang up of the line this string will be send to make
  149. sure that the modem is in a fine state to reenter a new loop. This
  150. should not reset the values set in the init string, just make sure it
  151. works probarly.
  152. .in -2
  153.  
  154. .cl 1 3.7. logon_path
  155. 3.7. logon_path (CLO -p=<string>)
  156.  
  157. .in +2
  158.     Normally you start logon from mmon. If you prefer to start some
  159. other programs (e.g. login, or a own bbs program) you can insert it
  160. here.
  161. .in -2
  162.  
  163. .cl 1 3.8. start_before_logon
  164. 3.8. start_before_logon
  165.  
  166. .in +2
  167.     With a special option you can force mmon to start a shellscript
  168. before and after a start of logon. This gives the string to the shell
  169. script which should be started before logon is started.
  170. .in -2
  171.  
  172. .cl 1 3.9. start_after_logon
  173. 3.9. start_after_logon
  174.  
  175. .in +2
  176.     Like above, but this is the path of the script to be executed
  177. when logon returns.
  178. .in -2
  179.  
  180. .cl 1 3.10. entry_for_logon
  181. 3.10. entry_for_logon (CLO -e=<string>
  182.  
  183. .in +2
  184.     Logon reads its configurations from a special file (see logon)
  185. and there are different entries, all with an own label. This string
  186. gives the label for logon to be used for this line.
  187. .in -2
  188.  
  189. .cl 1 3.11. options_for_logon
  190. 3.11. options_for_logon (CLO -o=<string>)
  191.  
  192. .in +2
  193.     If you want to pass over some special Options to logon you can
  194. insert them here.
  195. .in -2
  196.  
  197. .cl 1 3.12. motd_file
  198. 3.12. motd_file (CLO -l, -l=<string>)
  199.  
  200. .in +2
  201.     If you want to send no or another MOTD for this line use this
  202. option. If you choose 'false' as text (or CLO -l) then no MOTD will be
  203. displayed, otherwise you give the path of a file (CLO -l=<string>.)
  204. .in -2
  205.  
  206. .cl 1 3.13. modem_response
  207. 3.13. modem_response
  208.  
  209. .in +2
  210.     MMon determinates a successful connection by the responses of
  211. the modem. This entry may come several times for a line for different
  212. answers. The syntax for a string is <response>,<speed>, e.g. the entry
  213. CONNECT 1200,1200 will determinate 'CONNECT 1200' as a valid response
  214. for a successful connection and switch the line to 1200 baud.
  215. .in -2
  216.  
  217. .cl 1 3.14. default_speed
  218. 3.14. default_speed (CLO -b=<string>)
  219.  
  220. .in +2
  221.     This is the default speed (in baud/bps) for MMon to work in the
  222. command mode of the modem, in general this will be hte highest supported
  223. speed by the modem.
  224. .in -2
  225.  
  226. .cl 1 3.15. examine_linkcount
  227. 3.15. examine_linkcount (CLO -k)
  228.  
  229. .in +2
  230.     This boolean expressions tells MMon to examine the linkcount to
  231. ensure that it is low enough (mostly zero) that the line drops it DTR
  232. and the modems hangs up. Should only be used when atach/detach is on.
  233. .in -2
  234.  
  235. .cl 1 3.16. use_attach
  236. 3.16. use_attach (CLO -d)
  237.  
  238. .in +2
  239.     This boolean expression is used to switch the atach and detach
  240. operations on and off (CLO -d switch the use OFF).
  241. .in -2
  242.  
  243. .cl 1 3.17. use_checkfile
  244. 3.17. use_checkfile (CLO -c)
  245.  
  246. .in +2
  247.     Above are the entries for scripts to be started before and after
  248. the execution of logon. With this boolean expression you switch if
  249. theses scripts are realy used on or off.
  250. .in -2
  251.  
  252. .cl 1 3.18. use_fix_speed
  253. 3.18. use_fix_speed (CLO -f)
  254.  
  255. .in +2
  256.     If you just want to allow a connection on one speed use this
  257. boolean option. May be usefull for modems which just support one speed.
  258. .in -2
  259.  
  260. .cl 1 3.19. fix_speed
  261. 3.19. fix_speed (CLO -f=<string>)
  262.  
  263. .in +2
  264.     This sets the fixed speed to the given baud rate rather than the
  265. default value.
  266. .in -2
  267.  
  268. .cl 1 3.20. use_limit
  269. 3.20. use_limit (CLO -s=<string>)
  270.  
  271. .in +2
  272.     In some special cases it may be useful to allow just a limitied
  273. numbers of logins. After these MMon should die (mostly one login.) Use
  274. this boolean option for switch it on or off.
  275. .in -2
  276.  
  277. .cl 1 3.21. limit_logons_to
  278. 3.21. limit_logons_to (CLO -s=<string>)
  279.  
  280. .in +2
  281.     use_limit switches the featzre on and off, this option sets the
  282. number to the desired value.
  283. .in -2
  284.  
  285. .cl 1 3.22. die_after_time
  286. 3.22. die_after_time (CLO -s=,<string> or in combination -s=<str>,<str>)
  287.  
  288. .in +2
  289.     This gives a time in minutes to run and die, if no login had
  290. took place to this time. Very useful in combination with limited logins.
  291. So you can say with CLO -s=1,1 that only one login should be possible,
  292. and this login must be in one minute. This is used in 'watch'.
  293. .in -2
  294.  
  295. .cl 1 3.23. do_protocoll_to
  296. 3.23. do_protocoll_to (CLO -z=<string>)
  297.  
  298. .in +2
  299.     This string is a pathname to a logfile for MMon. Normally
  300. useless, but useful for debugging the program (and perhaps the responses
  301. of the modem.)
  302. .in -2
  303.  
  304. .cl 1 3.24. force_lock
  305. 3.24. force_lock (CLO -x)
  306.  
  307. .in +2
  308.     When MMon is started on a device which is currently locked it
  309. dies after some tries. If this option is given, it stays as long as it
  310. will be free (boolean expression.)
  311. .in -2
  312.  
  313. .cl 1 3.25. stay_on_free_device
  314. 3.25. stay_on_free_device (-g=<string>)
  315.  
  316. .in +2
  317.     While MMon is running, some other process will use this device
  318. for a short time (dial-outs, uucico etc.). These processes will try to
  319. lock the device and MMon is forced to free it. Normally MMon then dies.
  320. If you want that MMon restarts after the device is free again, use this
  321. option. There is a numeric value neccasery that tells MMon to look all
  322. n-times at the device. This value is in general one (every minute.)
  323. .in -2
  324.  
  325. .cl 1 3.26. process_terminating_by_driver
  326. 3.26. process_terminating_by_driver (CLO -t)
  327.  
  328. .in +2
  329.     When a user hangs up the line without logging off properly then
  330. MMon will kill all running processes started by the user (if can be
  331. reached through the process table tree.) If your device driver will kill
  332. all processes which have a path open on this line on receiving a hangup
  333. use this boolean option (never seen yet such driver..)
  334. .in -2
  335.  
  336. .cl 1 3.37. line
  337. 3.37. line
  338.  
  339. .in +2
  340.     The line on which MMon runs is normally given in the
  341. commandline. If you want to use another line, use this option.
  342. .in -2
  343.  
  344. .cl 1 3.38. do_lock
  345. 3.38. do_lock
  346.  
  347. .in +2
  348.     This boolean expression is normally set to true that MMon will
  349. lock the device. In some special cases this may not be useful, so you
  350. can switch it off here.
  351. .in -2
  352.  
  353. .cl 1 3.39. be_tolerant
  354. 3.39. be_tolerant
  355.  
  356. .in +2
  357.     As written above, MMon tries to kill all process started by a
  358. specific user when hang up. On some special programs this is not useful
  359. at once, because they want to do some cleanup. These programs are usally
  360. is one group. So you can give with this option a groupname where the
  361. kill will be send later, so a cleanup can be safely done, useful for
  362. UUCP, SMTP, etc. There can be more than one entry of this form for
  363. different groups.
  364. .in -2
  365. .in -2
  366. .in -2
  367.  
  368. .cl 0 4. Default Values
  369. .ul
  370. 4. Default Values
  371.  
  372. .in +2
  373.  
  374.     Now this is a complete list of the defaults, so you know which
  375. option you have to set or you may not set (lines must not be splitted as
  376. in the example, this is just done for a better layout.)
  377. .in +2
  378. .nf
  379. .nj
  380. is_modem = false
  381. init_modem = ATZ\\nAT X4 Q0 V1 S0=1 S2=255 S4=17 \\
  382.              S10=20 S12=120 E0\\n
  383. init_modem_no_attach = ATZ\\nAT X4 Q0 V1 S0=1 S2=2 \\
  384.                        S4=17 S10=20 S12=120 E0\\n
  385. #
  386. #    Only i defaults as Ctrl-B (02), you can't
  387. #    set it (yet) in the config file to
  388. #    control codes
  389. escape_to_command = ^B^B^B
  390. reset_modem = ATZ\\n
  391. reinit_modem = \\dAT\\n
  392. logon_path = logon
  393. start_before_logon = /dd/SYS/.mmonstart
  394. start_after_logon = /dd/SYS/.mmonend
  395. #
  396. #    %d will be set to current line speed
  397. entry_for_logon = M%d
  398. #
  399. #    No options on default
  400. # options_for_logon =
  401. #
  402. #    The defualt MOTD should be used
  403. # motd_file =
  404. #
  405. #    No responses are stored on default
  406. # modem_response
  407. default_speed = 1200
  408. examine_linkcount = true
  409. use_attach = true
  410. use_checkfile = false
  411. use_fix_speed = false
  412. #
  413. #    Not set as use_fix_speed is false
  414. # fix_speed =
  415. #
  416. #    Only used in special applications
  417. # use_limit =
  418. # limit_logons_to =
  419. # die_after_time =
  420. #
  421. # do_protocoll_to =
  422. force_lock = false
  423. #
  424. #    Die after lock by another process
  425. # stay_on_free_device =
  426. process_terminating_by_driver = false
  427. #
  428. #    Line is set in command line
  429. # line =
  430. do_lock = true
  431. #
  432. #    Nothing set on default
  433. # be_tolerant
  434. .fill
  435. .justify
  436. .in -4
  437.  
  438. .cl 0 5. Example File
  439. .ul
  440. 5. Example File
  441.  
  442. .in +2
  443.     Here a working example file:
  444. .nf
  445. .nj
  446. #
  447. #    For a modem line
  448. #
  449. /t1
  450.     is_modem = true
  451.     entry_for_logon = M1200_8N1
  452.     options_for_logon = -lc
  453.     modem_response = CONNECT,300
  454.     modem_response = CONNECT 1200,1200
  455.     modem_response = CONNECT 2400,2400
  456.     be_tolerant = Uucp
  457.     be_tolerant = Smtp
  458.     do_protocoll_to = /dd/mmon.log
  459.     stay_on_free_device = true
  460.  
  461. #
  462. #    For a hard wired line
  463. #
  464. /t3
  465.     entry_for_logon = 9600
  466.     options_for_logon = -tsm
  467.     use_fix_speed = true
  468.     fix_speed = 9600
  469.  
  470. #
  471. #    For a hard wired line with UUCP/SMTP
  472. #    Connections
  473. #
  474. /t5
  475.     entry_for_logon = 9600
  476.     use_attach = false
  477.     use_fix_speed = true
  478.     be_tolerant = Uucp
  479.     be_tolerant = Smtp
  480.     fix_speed = 9600
  481.  
  482. #
  483. #    For a hard wired line for my Cambridge
  484. #    Z88 handheld
  485. #
  486. /t6
  487.     entry_for_logon = Z88
  488.     motd_file = false
  489.     options_for_logon = -ts
  490.     use_attach = false
  491.     use_fix_speed = true
  492.     fix_speed = 2400
  493.     stay_on_free_device = true
  494. .fill
  495. .justify
  496. .in -4
  497. .page
  498. .ce
  499. Contens
  500. .pc
  501.