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

  1. .fill
  2. .justify
  3. .offset 5
  4. .rightmargin 70
  5. .pagesize 72
  6. .m1 3
  7. .m2 2
  8. .m3 2
  9. .m4 5
  10. .ec \
  11. .header /Watch/Admin/Watch
  12. .footer /Page #//Printed (%)/
  13. .in +5
  14. .define topic
  15. .bold
  16. .in -5
  17. $1 $2 $3 $4 $5
  18. .in +5
  19. .en
  20. .define endtopic
  21.  
  22.  
  23. .en
  24. .define noform
  25. .nojustify
  26. .nofill
  27. .en
  28. .define noformend
  29. .justify
  30. .fill
  31. .en
  32. .! Manual created with MWB
  33. .! END-OF-MACRO
  34. .topic NAME
  35. Watch - Watch a modem line
  36. .endtopic
  37. .topic SYNOPSIS
  38. .noform
  39. watch [-t=time] [-c=cmd] [-d[=dev]] [-m=match] <device>
  40.       [-b=time] [-l=logfile]
  41. .noformend
  42. .endtopic
  43. .topic DESCRIPTION
  44.     The utility
  45. .bold
  46. watch
  47. gives the system operator a simple but powerful possibility zo use
  48. her/his phone for incoming calls via modem or voice. Normaly you invoke
  49. watch only with the device, e.g.
  50. .ul
  51. watch /t1
  52. which assumes that on /t1 is a modem connected. Watch sends then the
  53. modem rest string, assuming that this will switch off autoanswer. Then
  54. watch reads the line waiting for the string `RING`. If a second `RING`
  55. will be received in the next 10 seconds watch thinks this is one call
  56. and then waits until there comes 60 seconds no `RING`. Otherwise watch
  57. starts the command
  58. .ul
  59. mmon -m -nf -lo=lc -s=1,1
  60. or one given in the commandline. This command starts the mmon for one
  61. login chance and if there noone loggs in in 60 seconds it wil die and
  62. give the controll over the line back to watch.
  63.  
  64.     So if you want to call a system which is running watch you have
  65. to cal first and wait until the 'target' phone rings once. Then you have
  66. to hang up at once and try to call again after abaout 10-20 seconds.
  67. Then the remote system should pick up the phone and let you log in.
  68.  
  69.     There are some options you can give to watch. But pay attention,
  70. the <device> have to be given, otherwise watch won't run.
  71.  
  72. .in +5
  73. -t=time
  74. .in +5
  75. This iss the time how long the mmon will wait for an incoming
  76. call in minutess. If 1 minute (default) is not enough for your system
  77. you xcan give here ever desired duration.
  78. .in -5
  79.  
  80. -c=cmd
  81. .in +5
  82.  
  83. If you need another command as the default one you can specify it here.
  84. Note that you have to quote it if there are spaces in the command. If
  85. you want to quote in the command a part of it, then quote it with single
  86. quotation marks, the whole argument you have then to quote wit double 
  87. quotation marks. If you invoke mmon a 
  88. .ul
  89. -s=1,%d
  90. should be included to be sure that the mmon only runs once.
  91. .in -5
  92.  
  93. -d
  94. -d=dev
  95. .in +5
  96. If the device where you wait for the `RING` is different to this where
  97. you watch the line you can give it here. Default is that these are the
  98. same devices. If no device should be given in the commandline use -d.
  99. .in -5
  100.  
  101. -m=match
  102. .in +5
  103. Watch normally waits for the string `RING` to take this as indication of
  104. a phone ring. If you need another, use this option. Any control
  105. charackter is skipped but CR (\$0D) will used to determinate the end of
  106. a received string.
  107. .in -5
  108.  
  109. -b=time
  110. .in +5
  111. If watch receives the second time a `RING` an it is less than 10 seconds
  112. after the first, watch will think this belongs to the first call. To
  113. change this limit, use this option.
  114. .in -5
  115.  
  116. -l=logfile
  117. .in +5
  118. Some debug infos will be written to <logfile>. This may be useful to
  119. determinate when the phone has rung and control the correct work of
  120. watch.
  121. .in -10
  122. .endtopic
  123. .topic BUGS
  124. Watch is only designed for hayes(tm) compatible modems.
  125. .endtopic
  126. .topic SYSINFO
  127. .noform
  128. Watch needs entries for every device it should run on.
  129. .noformend
  130. .endtopic
  131. .topic EXAMPLES
  132. .noform
  133. watch /t1 -l=/dd/watch.log
  134. .noformend
  135. .endtopic
  136. .topic SEE ALSO
  137. .noform
  138. MMon
  139. in the Top Munich Release
  140. .noformend
  141. .endtopic
  142. .topic AUTHOR
  143. .in 0
  144. .ce 4
  145. Ulrich Dessauer
  146. Kerschensteinerstr. 45, D-8034 Germering
  147. Voice: +49 89 8417811
  148. E-Mail: ..!{chiuur|doitcr}!nitmar!ud
  149. .endtopic
  150.