-k<space>
Tells mgetty to leave <space> kbytes free on disk when receiving a fax.
-x<debuglevel>
Use the given level of verbosity for logging - 0 means no logging, 9 is really noisy. The log file
is usually /tmp/log_mg.<device>
-s<speed>
Set the port speed to use, e.g. "-s 19200".
-r Tells mgetty that it is running on a direct line. UUCP locking is done, but no modem
initialization whatsoever.
-p<loginprompt>
Use the given string to prompt users for their login names. Various tokens are allowed in this
string. These tokens are: @ for the system name, \n, \r, \g, \b, \v, \f, \t for newline, carriage
return, bell, backspace, vertical tab, form feed, and tab, respectively. \P and \L will expand to
the tty name ("ttyS0"). \Y will give the Caller ID, \I the "CONNECT foobar" string returned by the
modem, and \S will output the port speed. \s, \m, \V, \R represent the operating system, the
hardware name, the OS version, the OS release. \N and \U give the number of users currently
logged in. \C will be changed into the result of ctime(), and \D and \T will output the date and
time, respectively. Finally, \<digit> will use digit as octal/decimal/hexadecimal representation
of the character to follow.
The default prompt is specified at compile time.
-n# Tells mgetty to pick up the phone after the #th RING. Default is 1.
-R<t> Tells mgetty to go into "ringback" (aka "ring-twice") mode. That means: the first call is never
answered, instead the caller has to hang up after the phone RINGs, wait 30 seconds, and then call
again in the next <t> seconds for mgetty to pick up. If no call comes, mgetty will exit.
I do not really recommend using this, better get a second phone line for the modem.
-i<issuefile>
Output <issue file> instead of /etc/issue before prompting for the user name. The same token
substitutions as for the the login prompt are done in this file.
-D Tells mgetty that the modem is to be treated as a DATA modem, no fax initalization is attempted.
-F Tells mgetty that DATA calls are not allowed and the modem should be set to Fax-Only.
-C<class>
Tells mgetty how to treat the modem. Possible values for <class> are "auto" (default, try to find
out whether the modem supports fax), "cls2" (use the class 2 fax command set, even if the modem
supports class 2.0), "c2.0" (use the class 2.0 fax command set), "data" (data only, exactly as the
-D switch).
-S<g3file>
If a call comes in and requests fax polling, mgetty will send the named file. Note: not all fax
modems support poll sending.
-I<faxid>
Use the given fax station ID for fax identification. Not used for data modems.
-b Open the port in blocking mode. Best used in combination with "-r". This is the default if mgetty
is called as getty. 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 for completeness, and to be able to use mgetty as a full-featured
getty replacement.
-a Use autobauding. That is, after a connection is made, mgetty parses the "CONNECT foo" response
code of the modem and sets the port speed to the first integer found after the "CONNECT" string,
"foo" in this example. You need this if your modem insist on changing its DTE speed to match the
line speed. I recommend against using it, better leave the port speed locked at a fixed value. The
feature is included because there exist old modems that cannot use a fixed (locked) port speed.
-m'expectsend...'
Set the "chat sequence" that is used to initialize the modem. For an empty expect part, use empty
double quotes (""). Since the sequence contains spaces, you have to enclose all of it in single
quotes(''). Example:
mgetty -m '"" ATH0 OK'