MAN page from Other mgetty-1.1.9-5tx.i386.rpm
mgetty
Section: mgetty+sendfax manual (8)
Updated: 27 Oct 93
Index NAME
mgetty - smart modem getty
SYNOPSIS
mgetty[
options]ttydevice[
gettydefs]
DESCRIPTION
Mgetty is a ``smart'' getty replacement, designed to be used with hayescompatible data and data/fax modems.Mgetty knows about modem initialization, manual modem answering (so yourmodem doesn't answer if the machine isn't ready), UUCP locking (so you canuse the same device for dial-in and dial-out).Mgetty provides very extensive logging facilities.
This manpage doesn't try to detail mgetty setup in detail, it just liststhe most important options. For detailed instructions, see the info filemgetty.info (mgetty.texi).
OPTIONS
- -k <space>
- Tellsmgettyto leave <space> kbytes free on disk when receiving a fax.
- -x <debug level>
- Use the given level of verbosity for logging - 0 means no logging, 9 isreally noisy. The log file is usually /tmp/log_mg.<device>
- -s <speed>
- Set the port speed to use, e.g. "-s 19200".
- -r
- Tellsmgettythat it is running on a direct line. UUCP locking is done, but no modeminitialization whatsoever.
- -p <login prompt>
- Use the given string to prompt users for their login names. Varioustokens are allowed in this string. These tokens are: @ for the systemname, \n, \r, \g, \v, \f, \t for newline, carriage return, bell,vertical tab, form feed, and tab, respectively. \P and \L will expand tothe tty name ("ttyS0"). \I will give the "CONNECT foobar" string returnedby the modem, and \S will output the port speed.\N and \U give the number of users currently logged in.\C will be changed into the result of ctime(), and \D and \T willoutput the date and time, respectively. Finally, \<digit> will use digitas octal/decimal/hexadecimal representation of the character to follow.
The default prompt is specified at compile time.
- -n #
- Tellsmgettyto pick up the phone after the #th RING. Default is 1.
- -R <t>
- Tellsmgettyto go into "ringback" (aka "ring-twice") mode. That means: the first callis never answered, instead the caller has to hang up after the phoneRINGs, wait 30 seconds, and then call again in the next <t> seconds formgetty to pick up. If no call comes, mgetty will exit.
I do not really recommend using this, better get a second phone line forthe modem.
- -i <issue file>
- Output <issue file> instead of /etc/issue before prompting for the username. The same token substitutions as for the the login prompt are donein this file.
- -D
- Tellsmgettythat the modem is to be treated as a DATA modem, no fax initalization isattempted.
- -F
- Tellsmgettythat DATA calls are not allowed and the modem should be set to Fax-Only.
- -C <class>
- Tellsmgettyhow to treat the modem. Possible values for <class> are "auto" (default,try to find out whether the modem supports fax), "cls2" (use the class 2fax command set, even if the modem supports class 2.0), "c2.0" (use theclass 2.0 fax command set), "data" (data only, exactly as the -D switch).
- -S <g3 file>
- If a call comes in and requests fax polling,mgettywill send the named file. Note: not all fax modems support pollsending.
- -I <fax id>
- Use the given fax station ID for fax identification. Not used for datamodems.
- -b
- Open the port in blocking mode. Best used in combination with "-r". Thisis the default ifmgettyis called asgetty.You may want to use this if you want to make use of the two-device /kernel-locking scheme of the Linux and SunOS operating systems(/dev/ttyS.. and /dev/cua..). I do not recommend it, it's just include forcompleteness, and to be able to use mgetty as a full-featured gettyreplacement.
- -a
- Use autobauding. That is, after a connection is made,mgettyparses the "CONNECT foo" response code of the modem and sets the portspeed to the first integer found after the "CONNECT" string, "foo" in thisexample. You need this if your modem insist on changing its DTE speed tomatch the line speed. I recommend against using it, better leave the portspeed locked at a fixed value. The feature is included because thereexist old modems that cannot use a fixed (locked) port speed.
- -m 'expect send ...'
- Set the "chat sequence" that is used to initialize the modem. For an emptyexpect part, use empty double quotes (""). Since the sequence containsspaces, you have to enclose all of it in single quotes(''). Example:
mgetty -m '"" ATH0 OK'
FILES
- /etc/mgetty+sendfax/login.config
- controls whether (and when)mgettyshould call some other program for user login instead of /bin/login. How thisis done is explained in this file.
- /etc/mgetty+sendfax/dialin.config
- controls acceptance/denial of incoming calls based on the caller's number.Available only if you have "caller ID" and your modem supports it.
- /etc/nologin.ttyxx
- controls whether mgetty should pick up the phone upon incoming calls. Ifthe file exists, calls are completely ignored. You can use this, forexample, to stop mgetty during day time, and let it pick up at night only,by creating and removing /etc/nologin.ttyxx via the cronprogram at the appropriate time.
BUGS
Not all of
mgettyconfiguration can be done at run-time yet. Things like flow control andfile paths (log file / lock file) have to be configured by changing thesource and recompiling.
Users never read manuals...
SEE ALSO
g32pbm(1),
sendfax(8),
getty(8),
mgettydefs(4), mgetty.info
AUTHOR
mgettyis Copyright (C) 1993 by Gert Doering, <gertAATTgreenie.muc.de>.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- FILES
- BUGS
- SEE ALSO
- AUTHOR
This document was created byman2html,using the manual pages.