unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Page:
Section:
Apropos / Subsearch:
optional field



uugetty(8)							   uugetty(8)



NAME

  uugetty - Sets the terminal type, modes, speed, and line.

SYNOPSIS

  /usr/lib/uucp/uugetty	[-h] [-t  time]	[-r] [-c  file]	line [speed_label
  [terminal [line_discipline]]]

OPTIONS

  -c file
      Directs that the specified file should be	checked	instead	of the
      /etc/uugettydefs file.

  -h  Holds the	carrier	during the initialization phase; does not hang up.

  -t time
      Specifies	a timeout period for login; in other words, the	line is
      dropped if nothing is typed after	time seconds.

  -r  Specifies	that uugetty should wait for a character before	it displays a
      login message, thus preventing two uugetty commands from looping and
      allowing the line	to be shared by	uucico,	cu, and	tip.

DESCRIPTION

  The uugetty command sets and manages terminals by setting up speed, termi-
  nal flags, and the line discipline.  If command options are provided,
  uugetty adapts the system to those specifications; uugetty prints the	login
  prompt, waits	for the	user to	enter a	username, and invokes the login	com-
  mand.

  The uugetty command provides all the features	of the getty command, but
  also provides	support	through	the -r option for using	the line with the
  uucico, cu, ct, and tip commands.  The line can thereby be used in both
  directions.  The uugetty command enables users to log	in, but	if the line
  is free, the uucico, cu, ct, and tip commands	can be used for	dialing	out.
  The implementation depends on	the fact that the uucico, cu, ct, and tip
  commands create lock files when devices are used.  When uugetty first	reads
  characters, the status of the	lock file indicates whether the	line is	being
  used by uucico, cu, ct, or tip, or by	someone	trying to log in.

  The line argument specifies the /dev/entry file for the terminal line.  It
  can be entered as a relative pathname	or an absolute pathname. The
  speed_label argument is a pointer into the /etc/uugettydefs file where the
  definitions for speed	and other associated flags are located.	If this	argu-
  ment is not specified, uugetty uses the first	entry in the file.  The	ter-
  minal	argument specifies the name of the terminal type. This argument	is
  used to set the TERM environment variable for	the user who logs in from
  this terminal.  The line_discipline argument specifies the name of the line
  discipline.

  When the -r option is	used, the user may have	to key several carriage
  returns before the login message is displayed. When uucico attempts to log
  in, the following login script informs it that several carriage returns may
  be necessary before the login	message	is displayed:


   \r\d\r\d\r\d\r in:--in:login	sequence

  In this script, login	sequence is whatever is	normally used for the login
  sequence.

  An entry for an intelligent modem or direct line that	has a uugetty on each
  end must use the -r option.  The following is	an /etc/inittab	entry using
  uugetty on an	intelligent modem or direct line:

  30:2:respawn:/usr/lib/uucp/uugetty -r	-t 60 tty12 1200

FILES

  /usr/lib/uucp/uugetty
      Specifies	the command path

  /etc/uugettydefs
      The terminal line	database file

      This file	uses the same format as	the/etc/gettydefs file.

  /etc/inittab
      File that	specifies the initialization processes

  /var/spool/locks/LCK*
      Lock files used by uugetty, uucico, cu, ct, and tip to keep other	com-
      mands from using the same	terminal line

SEE ALSO

  Commands: ct(1) cu(1), login(1), stty(1), tip(1), getty(8), init(8),
  uucico(8)

  Files: gettydefs(4), inittab(4), tty(7)