DOSHELL(8)

NAME
doshell - Execute a program on a new tty

SYNOPSIS
/etc/doshell new_tty command

DESCRIPTION
doshell will close the current tty, open new_tty for standard input and output, and start command. doshell can be used to start a shell on an arbitrary tty, by using the command: doshell /etc/tty2 /etc/bash

SEE ALSO
login(1), init(8), getty(8)

BUGS
No diagnostics are printed, and no check on proper arguments is performed. All arguments must have fully qualified pathnames.

In particular, no checking is performed to be sure that the first argument is a device. Therefore, if the arguments are accidentally reversed, a binary can be trashed.

AUTHOR
Jim Wiegand