1994-05-30 19:09:18 +00:00
|
|
|
.\" Copyright (c) 1983, 1991, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" @(#)remote.5 8.1 (Berkeley) 6/5/93
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1994-05-30 19:09:18 +00:00
|
|
|
.\"
|
2003-10-20 10:26:54 +00:00
|
|
|
.Dd October 20, 2003
|
1994-05-30 19:09:18 +00:00
|
|
|
.Dt REMOTE 5
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
1994-05-30 19:09:18 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm remote
|
|
|
|
.Nd remote host description file
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The systems known by
|
|
|
|
.Xr tip 1
|
|
|
|
and their attributes are stored in an
|
|
|
|
.Tn ASCII
|
|
|
|
file which
|
|
|
|
is structured somewhat like the
|
|
|
|
.Xr termcap 5
|
2003-10-20 10:04:55 +00:00
|
|
|
file.
|
|
|
|
Each line in the file provides a description for a single
|
1996-04-08 04:18:31 +00:00
|
|
|
.Em system .
|
1994-05-30 19:09:18 +00:00
|
|
|
Fields are separated by a colon (``:'').
|
|
|
|
Lines ending in a \e character with an immediately following newline are
|
|
|
|
continued on the next line.
|
|
|
|
.Pp
|
2003-10-20 10:04:55 +00:00
|
|
|
The first entry is the name(s) of the host system.
|
|
|
|
If there is more
|
1994-05-30 19:09:18 +00:00
|
|
|
than one name for a system, the names are separated by vertical bars.
|
2003-10-20 10:04:55 +00:00
|
|
|
After the name of the system comes the fields of the description.
|
|
|
|
A field name followed by an `=' sign indicates a string value.
|
1998-06-28 21:33:42 +00:00
|
|
|
A field name followed by a `#' sign indicates a numeric value.
|
1994-05-30 19:09:18 +00:00
|
|
|
.Pp
|
2003-10-20 10:04:55 +00:00
|
|
|
Entries named ``tip*'' and ``cu*'' are used as default entries by
|
1996-04-08 04:18:31 +00:00
|
|
|
.Xr tip 1 ,
|
1994-05-30 19:09:18 +00:00
|
|
|
and the
|
1996-04-08 04:18:31 +00:00
|
|
|
.Xr cu 1
|
2001-07-14 19:41:16 +00:00
|
|
|
interface to
|
1996-04-08 04:18:31 +00:00
|
|
|
.Nm tip ,
|
2003-10-20 10:04:55 +00:00
|
|
|
as follows.
|
|
|
|
When
|
1996-04-08 04:18:31 +00:00
|
|
|
.Nm tip
|
1994-05-30 19:09:18 +00:00
|
|
|
is invoked with only a phone number, it looks for an entry
|
2003-10-21 03:22:49 +00:00
|
|
|
of the form ``tip300'', where 300 is the data rate with
|
2003-10-20 10:04:55 +00:00
|
|
|
which the connection is to be made.
|
|
|
|
When the
|
1996-04-08 04:18:31 +00:00
|
|
|
.Nm cu
|
1994-05-30 19:09:18 +00:00
|
|
|
interface is used, entries of the form ``cu300'' are used.
|
|
|
|
.Sh CAPABILITIES
|
|
|
|
Capabilities are either strings (str), numbers (num), or boolean
|
2004-07-03 18:29:24 +00:00
|
|
|
flags (bool).
|
|
|
|
A string capability is specified by
|
1994-05-30 19:09:18 +00:00
|
|
|
.Em capability Ns Ar = Ns Em value ;
|
2003-10-20 10:04:55 +00:00
|
|
|
for example, ``dv=/dev/harris''.
|
|
|
|
A numeric capability is specified by
|
1994-05-30 19:09:18 +00:00
|
|
|
.Em capability Ns Ar # Ns Em value ;
|
2003-10-20 10:04:55 +00:00
|
|
|
for example, ``xa#99''.
|
|
|
|
A boolean capability is specified by simply listing the capability.
|
1994-05-30 19:09:18 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Cm \&at
|
|
|
|
(str)
|
|
|
|
Auto call unit type.
|
|
|
|
.It Cm \&br
|
|
|
|
(num)
|
2003-10-21 03:22:49 +00:00
|
|
|
The data rate (bits per second) used for communications on the
|
|
|
|
serial port.
|
|
|
|
When a modem is used, the data rate used to communicate
|
|
|
|
with the remote modem may be different than this rate.
|
2001-07-14 19:41:16 +00:00
|
|
|
This is a decimal number.
|
2003-10-21 03:22:49 +00:00
|
|
|
The default rate is 9600 bits per second.
|
1994-05-30 19:09:18 +00:00
|
|
|
.It Cm \&cm
|
|
|
|
(str)
|
2003-10-20 10:04:55 +00:00
|
|
|
An initial connection message to be sent to the remote host.
|
|
|
|
For example, if a host is reached through a port selector, this
|
|
|
|
might be set to the appropriate sequence required to switch to the host.
|
1994-05-30 19:09:18 +00:00
|
|
|
.It Cm \&cu
|
|
|
|
(str)
|
|
|
|
Call unit if making a phone call.
|
|
|
|
Default is the same as the `dv' field.
|
|
|
|
.It Cm \&di
|
|
|
|
(str)
|
2003-10-20 10:04:55 +00:00
|
|
|
Disconnect message sent to the host when a disconnect is requested by
|
|
|
|
the user.
|
1994-05-30 19:09:18 +00:00
|
|
|
.It Cm \&du
|
|
|
|
(bool)
|
2001-07-14 19:41:16 +00:00
|
|
|
This host is on a dial-up line.
|
1994-05-30 19:09:18 +00:00
|
|
|
.It Cm \&dv
|
|
|
|
(str)
|
2002-11-29 11:39:20 +00:00
|
|
|
.Ux
|
2001-07-14 19:41:16 +00:00
|
|
|
device(s) to open to establish a connection.
|
1994-05-30 19:09:18 +00:00
|
|
|
If this file refers to a terminal line,
|
|
|
|
.Xr tip 1
|
2001-04-03 05:43:07 +00:00
|
|
|
attempts to perform an exclusive open on the device to ensure only
|
1994-05-30 19:09:18 +00:00
|
|
|
one user at a time has access to the port.
|
|
|
|
.It Cm \&el
|
|
|
|
(str)
|
2001-07-14 19:41:16 +00:00
|
|
|
Characters marking an end-of-line.
|
1994-05-30 19:09:18 +00:00
|
|
|
The default is
|
2001-07-14 19:41:16 +00:00
|
|
|
.Dv NULL .
|
1994-05-30 19:09:18 +00:00
|
|
|
`~' escapes are only
|
|
|
|
recognized by
|
1996-04-08 04:18:31 +00:00
|
|
|
.Nm tip
|
2003-10-20 10:04:55 +00:00
|
|
|
after one of the characters in `el', or after a carriage-return.
|
1994-05-30 19:09:18 +00:00
|
|
|
.It Cm \&fs
|
|
|
|
(str)
|
2001-07-14 19:41:16 +00:00
|
|
|
Frame size for transfers.
|
1994-05-30 19:09:18 +00:00
|
|
|
The default frame size is equal to
|
|
|
|
.Dv BUFSIZ .
|
|
|
|
.It Cm \&hd
|
|
|
|
(bool)
|
2003-10-20 10:04:55 +00:00
|
|
|
The host uses half-duplex communication, local echo should be performed.
|
1994-05-30 19:09:18 +00:00
|
|
|
.It Cm \&ie
|
|
|
|
(str)
|
|
|
|
Input end-of-file marks.
|
|
|
|
The default is
|
2001-07-14 19:41:16 +00:00
|
|
|
.Dv NULL .
|
1994-05-30 19:09:18 +00:00
|
|
|
.It Cm \&oe
|
|
|
|
(str)
|
|
|
|
Output end-of-file string.
|
|
|
|
The default is
|
2001-07-14 19:41:16 +00:00
|
|
|
.Dv NULL .
|
|
|
|
When
|
1996-04-08 04:18:31 +00:00
|
|
|
.Nm tip
|
1994-05-30 19:09:18 +00:00
|
|
|
is transferring a file, this
|
|
|
|
string is sent at end-of-file.
|
|
|
|
.It Cm \&pa
|
|
|
|
(str)
|
|
|
|
The type of parity to use when sending data
|
2003-10-20 10:04:55 +00:00
|
|
|
to the host.
|
|
|
|
This may be one of ``even'',
|
1994-05-30 19:09:18 +00:00
|
|
|
``odd'', ``none'', ``zero'' (always set bit 8 to zero),
|
2003-10-20 10:04:55 +00:00
|
|
|
``one'' (always set bit 8 to 1).
|
|
|
|
The default is even parity.
|
1994-05-30 19:09:18 +00:00
|
|
|
.It Cm \&pn
|
|
|
|
(str)
|
|
|
|
Telephone number(s) for this host.
|
2003-10-20 10:04:55 +00:00
|
|
|
If the telephone number field contains an @ sign,
|
1996-04-08 04:18:31 +00:00
|
|
|
.Nm tip
|
1994-05-30 19:09:18 +00:00
|
|
|
searches the file
|
|
|
|
.Pa /etc/phones
|
2003-10-20 10:04:55 +00:00
|
|
|
file for a list of telephone numbers (see
|
1998-06-28 21:33:42 +00:00
|
|
|
.Xr phones 5 ) .
|
1994-05-30 19:09:18 +00:00
|
|
|
.It Cm \&tc
|
|
|
|
(str)
|
2003-10-20 10:04:55 +00:00
|
|
|
Indicates that the list of capabilities is continued in the named
|
|
|
|
description.
|
|
|
|
This is used primarily to share common capability information.
|
1994-05-30 19:09:18 +00:00
|
|
|
.El
|
2005-01-21 08:36:40 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /etc/remote -compact
|
|
|
|
.It Pa /etc/remote
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
host description file resides in
|
|
|
|
.Pa /etc .
|
|
|
|
.El
|
2003-10-20 10:26:54 +00:00
|
|
|
.Sh EXAMPLES
|
1994-05-30 19:09:18 +00:00
|
|
|
Here is a short example showing the use of the capability continuation
|
2003-10-20 10:26:54 +00:00
|
|
|
feature.
|
2003-10-20 19:17:15 +00:00
|
|
|
It defines a 56k modem connection on the first serial port at 115200
|
2003-10-21 03:22:49 +00:00
|
|
|
bits per second, no parity using the Hayes command set with standard
|
|
|
|
line editing and end of file characters.
|
2003-10-20 19:17:15 +00:00
|
|
|
The arpavax entry includes everything in the UNIX-57600 entry plus
|
2003-10-20 10:26:54 +00:00
|
|
|
the phone number for arpavax (in this case an @ character so that it
|
2003-10-20 19:17:15 +00:00
|
|
|
is retrieved from the environment).
|
1994-05-30 19:09:18 +00:00
|
|
|
.Bd -literal
|
2003-10-20 10:26:54 +00:00
|
|
|
UNIX-57600:\e
|
2004-11-13 00:09:19 +00:00
|
|
|
:dv=/dev/cuad0:el=^D^U^C^S^Q^O@:oe=^D:du:at=hayes:br#115200:pa=none:
|
1994-05-30 19:09:18 +00:00
|
|
|
arpavax|ax:\e
|
2003-10-20 10:26:54 +00:00
|
|
|
:pn=\e@:tc=UNIX-57600
|
1994-05-30 19:09:18 +00:00
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
2003-10-21 03:22:49 +00:00
|
|
|
.Xr cu 1 ,
|
1994-05-30 19:09:18 +00:00
|
|
|
.Xr tip 1 ,
|
|
|
|
.Xr phones 5
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file format appeared in
|
|
|
|
.Bx 4.2 .
|
2003-10-21 03:22:49 +00:00
|
|
|
.Sh BUGS
|
2004-06-16 08:33:57 +00:00
|
|
|
The
|
|
|
|
.Xr tip 1
|
|
|
|
utility uses its own notion of the serial ports data rate rather than the
|
2003-10-21 03:22:49 +00:00
|
|
|
system default for a serial port.
|