Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
International Rescue Committe

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 64 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       mgetty [options] ttydevice [gettydefs]


       Mgetty  is  a  ``smart'' getty replacement, designed to be
       used with  hayes  compatible  data  and  data/fax  modems.
       Mgetty  knows  about  modem  initialization,  manual modem
       answering (so your modem doesn't  answer  if  the  machine
       isn't ready), UUCP locking (so you can use 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 lists the most  important  options.  For  detailed
       instructions, see the info file mgetty.info (mgetty.texi).


       -k <space>
              Tells mgetty to 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 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

       -p <login prompt>
              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,  \v,  \f,  \t  for  newline,  carriage
              return,  bell,  vertical  tab,  form feed, and tab,
              respectively. \P and \L will expand to the tty name
              ("ttyS0"). \I will give the "CONNECT foobar" string
              returned by the modem, and \S will output the  port
              speed.   \N  and  \U  give the number of users cur­
              rently 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 representa­
              tion of the character to follow.

              The default prompt is specified at compile time.

              Output  <issue  file>  instead of /etc/issue before
              prompting for the user name. The same token substi­
              tutions  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  val­
              ues  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 sup­
              ports class 2.0), "c2.0" (use  the  class  2.0  fax
              command  set), "data" (data only, exactly as the -D

       -S <g3 file>
              If a call comes in and requests fax polling, mgetty
              will  send the named file. Note: not all fax modems
              support poll sending.

       -I <fax id>
              Use the given fax station ID  for  fax  identifica­
              tion. Not used for data modems.

       -b     Open the port in blocking mode. Best used in combi­
              nation 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

       -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 'expect send ...'
              Set the "chat sequence" that is used to  initialize
              other program for user login instead of /bin/login.
              How this is done is explained in this file.

              controls acceptance/denial of incoming calls  based
              on the caller's number.  Available only if you have
              "caller ID" and your modem supports it.

              controls whether mgetty should pick  up  the  phone
              upon  incoming calls. If the file exists, calls are
              completely ignored. You can use this, for  example,
              to  stop mgetty during day time, and let it pick up
              at night only, by creating and removing  /etc/nolo­
              gin.ttyxx  via  the cron program at the appropriate

              will be printed after a connection is  established,
              and before the with the '-i' option.

              Debug log file, see below.


       If  mgetty doesn't work the way it should, the main source
       of diagnostic data is the log file.  It can  be  found  in
       "/var/log/mgetty.ttyxx"  (for  the mgetty process handling
       "ttyxx").  If it doesn't contain enough  details,  enhance
       the log level with the '-x' option to mgetty, e.g. "-x 5".

       Many of the common problems and solutions are discussed in
       the mgetty manual and the FAQ.  Please see the WWW page at
       http://alpha.greenie.net/mgetty/ for both.


       Not all of mgetty configuration can be  done  at  run-time
       yet.  Things  like flow control and file paths (log file /
       lock file) have to be configured by  changing  the  source
       and recompiling.

       Users never read manuals...


       g32pbm(1),     sendfax(8),     getty(8),    mgettydefs(4),


An undefined database error occurred. SELECT distinct pages.pagepath,pages.pageid FROM pages, page2command WHERE pages.pageid = page2command.pageid AND commandid =

Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds