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 >
Wrap
Text File
|
2009-11-06
|
4KB
|
150 lines
.fill
.justify
.offset 5
.rightmargin 70
.pagesize 72
.m1 3
.m2 2
.m3 2
.m4 5
.ec \
.header /Watch/Admin/Watch
.footer /Page #//Printed (%)/
.in +5
.define topic
.bold
.in -5
$1 $2 $3 $4 $5
.in +5
.en
.define endtopic
.en
.define noform
.nojustify
.nofill
.en
.define noformend
.justify
.fill
.en
.! Manual created with MWB
.! END-OF-MACRO
.topic NAME
Watch - Watch a modem line
.endtopic
.topic SYNOPSIS
.noform
watch [-t=time] [-c=cmd] [-d[=dev]] [-m=match] <device>
[-b=time] [-l=logfile]
.noformend
.endtopic
.topic DESCRIPTION
The utility
.bold
watch
gives the system operator a simple but powerful possibility zo use
her/his phone for incoming calls via modem or voice. Normaly you invoke
watch only with the device, e.g.
.ul
watch /t1
which assumes that on /t1 is a modem connected. Watch sends then the
modem rest string, assuming that this will switch off autoanswer. Then
watch reads the line waiting for the string `RING`. If a second `RING`
will be received in the next 10 seconds watch thinks this is one call
and then waits until there comes 60 seconds no `RING`. Otherwise watch
starts the command
.ul
mmon -m -nf -lo=lc -s=1,1
or one given in the commandline. This command starts the mmon for one
login chance and if there noone loggs in in 60 seconds it wil die and
give the controll over the line back to watch.
So if you want to call a system which is running watch you have
to cal first and wait until the 'target' phone rings once. Then you have
to hang up at once and try to call again after abaout 10-20 seconds.
Then the remote system should pick up the phone and let you log in.
There are some options you can give to watch. But pay attention,
the <device> have to be given, otherwise watch won't run.
.in +5
-t=time
.in +5
This iss the time how long the mmon will wait for an incoming
call in minutess. If 1 minute (default) is not enough for your system
you xcan give here ever desired duration.
.in -5
-c=cmd
.in +5
If you need another command as the default one you can specify it here.
Note that you have to quote it if there are spaces in the command. If
you want to quote in the command a part of it, then quote it with single
quotation marks, the whole argument you have then to quote wit double
quotation marks. If you invoke mmon a
.ul
-s=1,%d
should be included to be sure that the mmon only runs once.
.in -5
-d
-d=dev
.in +5
If the device where you wait for the `RING` is different to this where
you watch the line you can give it here. Default is that these are the
same devices. If no device should be given in the commandline use -d.
.in -5
-m=match
.in +5
Watch normally waits for the string `RING` to take this as indication of
a phone ring. If you need another, use this option. Any control
charackter is skipped but CR (\$0D) will used to determinate the end of
a received string.
.in -5
-b=time
.in +5
If watch receives the second time a `RING` an it is less than 10 seconds
after the first, watch will think this belongs to the first call. To
change this limit, use this option.
.in -5
-l=logfile
.in +5
Some debug infos will be written to <logfile>. This may be useful to
determinate when the phone has rung and control the correct work of
watch.
.in -10
.endtopic
.topic BUGS
Watch is only designed for hayes(tm) compatible modems.
.endtopic
.topic SYSINFO
.noform
Watch needs entries for every device it should run on.
.noformend
.endtopic
.topic EXAMPLES
.noform
watch /t1 -l=/dd/watch.log
.noformend
.endtopic
.topic SEE ALSO
.noform
MMon
in the Top Munich Release
.noformend
.endtopic
.topic AUTHOR
.in 0
.ce 4
Ulrich Dessauer
Kerschensteinerstr. 45, D-8034 Germering
Voice: +49 89 8417811
E-Mail: ..!{chiuur|doitcr}!nitmar!ud
.endtopic