[BACK]Return to tip.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / tip

Diff for /src/usr.bin/tip/Attic/tip.1 between version 1.13 and 1.14

version 1.13, 2001/07/31 09:18:21 version 1.14, 2001/08/11 00:05:53
Line 44 
Line 44 
 .Sh SYNOPSIS  .Sh SYNOPSIS
 .Nm tip  .Nm tip
 .Op Fl nv  .Op Fl nv
 .Fl Ns Ns Ar speed  .Op Fl Ar speed
 .Ar system\-name  .Op Ar system\-name
 .Nm tip  
 .Op Fl nv  
 .Fl Ns Ns Ar speed  
 .Ar phone\-number  
 .\" .Nm cu  .\" .Nm cu
 .\" .Ar phone\-number  .\" .Ar phone\-number
 .\" .Op Fl t  .\" .Op Fl t
Line 61 
Line 57 
 .Nm  .Nm
 .\" and  .\" and
 .\" .Nm cu  .\" .Nm cu
 establishes a full-duplex connection to another machine,  establishes a full-duplex connection to another machine, giving the
 giving the appearance of being logged in directly on the  appearance of being logged in directly on the remote CPU.
 remote CPU.  It goes without saying that you must have a login on the machine (or
 It goes without saying that you must have a login  equivalent) to which you wish to connect.
 on the machine (or equivalent) to which you wish to connect.  
 .\" The preferred interface is  .\" The preferred interface is
 .\" .Nm tip .  .\" .Nm tip .
 .\" The  .\" The
Line 78 
Line 73 
 .\" .Nm tip .  .\" .Nm tip .
 .Pp  .Pp
 The options are as follows:  The options are as follows:
 .Bl -tag -width Ds  .Bl -tag -offset indent -width 4n
 .It Fl v  .It Fl v
 Set verbose mode.  Set verbose mode.
 .It Fl n  .It Fl n
 No escape (disable tilde).  No escape (disable tilde).
 .El  .El
 .Pp  .Pp
   If
   .Ar speed
   is specified it will override any baudrate specified in the system
   description being used.
   .Pp
   If neither
   .Ar speed
   nor
   .Ar system-name
   are specified,
   .Ar system-name
   will be set to the value of the
   .Ev HOST
   environment variable.
   .Pp
   If
   .Ar speed
   is specified but
   .Ar system-name
   is not,
   .Ar system-name
   will be set to a value of 'tip' with
   .Ar speed
   appended.
   e.g.
   .Ic tip -1200
   will set
   .Ar system-name
   to 'tip1200'.
   .Pp
 Typed characters are normally transmitted directly to the remote  Typed characters are normally transmitted directly to the remote
 machine (which does the echoing as well).  machine (which does the echoing as well).
 A tilde  A tilde
 .Pq Ql ~  .Pq Ql ~
 appearing  appearing as the first character of a line is an escape signal; the
 as the first character of a line is an escape signal; the following  following are recognized:
 are recognized:  .Bl -tag -offset indent -width Fl
 .Bl -tag -width flag  
 .It Ic \&~^D No or Ic \&~ .  .It Ic \&~^D No or Ic \&~ .
 Drop the connection and exit  Drop the connection and exit (you may still be logged in on the remote
 (you may still be logged in on the  machine).
 remote machine).  
 .It Ic \&~c Op Ar name  .It Ic \&~c Op Ar name
 Change directory to  Change directory to
 .Ar name  .Ar name
 (no argument  (no argument implies change to your home directory).
 implies change to your home directory).  
 .It Ic \&~!  .It Ic \&~!
 Escape to a shell (exiting the shell will return you to  Escape to a shell (exiting the shell will return you to
 .Nm tip Ns ).  .Nm tip Ns ).
Line 112 
Line 134 
 .It Ic \&~<  .It Ic \&~<
 Copy file from remote to local.  Copy file from remote to local.
 .Nm  .Nm
 prompts first for the name of the file to be sent, then for  prompts first for the name of the file to be sent, then for a command
 a command to be executed on the remote machine.  to be executed on the remote machine.
 .It Ic \&~p Ar from Op Ar to  .It Ic \&~p Ar from Op Ar to
 Send a file to a remote  Send a file to a remote
 .Ux  .Ux
Line 143 
Line 165 
 host.  host.
 As in the put command the  As in the put command the
 .Dq to  .Dq to
 file  file defaults to the
 defaults to the  
 .Dq from  .Dq from
 file name if it isn't specified.  file name if it isn't specified.
 The remote host  The remote host executes the command string
 executes the command string  
 .Dq cat 'from';echo ^A  .Dq cat 'from';echo ^A
 to send the file to  to send the file to
 .Nm tip .  .Nm tip .
Line 169 
Line 189 
 .It Ic \&~C  .It Ic \&~C
 Fork a child process on the local system to perform special protocols  Fork a child process on the local system to perform special protocols
 such as \s-1XMODEM\s+1.  such as \s-1XMODEM\s+1.
 The child program will be run with the following  The child program will be run with the following somewhat unusual
 somewhat unusual arrangement of file descriptors:  arrangement of file descriptors:
 .nf  .Bd -literal -offset indent
 .in +1i  
 0 <-> local tty in  0 <-> local tty in
 1 <-> local tty out  1 <-> local tty out
 2 <-> local tty out  2 <-> local tty out
 3 <-> remote tty in  3 <-> remote tty in
 4 <-> remote tty out  4 <-> remote tty out
 .in -1i  .Ed
 .fi  
 .It Ic \&~#  .It Ic \&~#
 Send a  Send a
 .Dv BREAK  .Dv BREAK
 to the remote system.  to the remote system.
 For systems which don't support the  For systems which don't support the necessary
 necessary  
 .Fn ioctl  .Fn ioctl
 call the break is simulated by a sequence of line speed changes  call the break is simulated by a sequence of line speed changes and
 and DEL characters.  DEL characters.
 .It Ic \&~s  .It Ic \&~s
 Set a variable (see the discussion below).  Set a variable (see the discussion below).
 .It Ic \&~^Z  .It Ic \&~^Z
Line 200 
Line 217 
 .Dq local side  .Dq local side
 of  of
 .Nm  .Nm
 (only available with job control);  (only available with job control); the
 the  
 .Dq remote side  .Dq remote side
 of  of
 .Nm tip ,  .Nm tip ,
Line 210 
Line 226 
 Get a summary of the tilde escapes.  Get a summary of the tilde escapes.
 .El  .El
 .Pp  .Pp
   To find the system description and thus the operating characteristics
   of
   .Ar system-name ,
 .Nm  .Nm
 uses the file  searches for a system description with a name identical to
 .Pa /etc/remote  .Ar system-name .
 to find how to reach a particular  The search order is
 system and to find out how it should operate while talking  .Bl -enum -offset indent
 to the system;  .It
 refer to  If the environment variable
   .Ev REMOTE
   does not start with a
   .Ql \&/
   it is assumed to be a system description, and is considered first.
   .It
   If the environment variable
   .Ev REMOTE
   begins with a
   .Ql \&/
   it is assumed to be a path to a
 .Xr remote 5  .Xr remote 5
 for a full description.  database, and the specified database is searched.
 Each system has a default baud rate with which to  .It
 establish a connection.  The default
 If this value is not suitable, the baud rate  .Xr remote 5
 to be used may be specified on the command line, e.g.,  database,
   .Pa /etc/remote ,
   is searched.
   .El
   .Pp
   See
   .Xr remote 5
   for full documentation on system descriptions.
   .Pp
   The
   .Ar ba
   capability is used in system descriptions to specify the baud rate
   with which to establish a connection.
   If the value specified is not suitable, the baud rate to be used may
   be given on the command line, e.g.,
 .Ql "tip -300 mds" .  .Ql "tip -300 mds" .
 .Pp  .Pp
 When  When
 .Nm  .Nm
 establishes a connection it sends out a  establishes a connection it sends out the connection message
 connection message to the remote system; the default value, if any,  specified in the
 is defined in  .Ar cm
 .Pa /etc/remote  capability of the system description being used.
 (see  
 .Xr remote 5 ) .  
 .Pp  .Pp
 When  When
 .Nm  .Nm
 prompts for an argument (e.g., during setup of  prompts for an argument (e.g., during setup of a file transfer) the
 a file transfer) the line typed may be edited with the standard  line typed may be edited with the standard erase and kill characters.
 erase and kill characters.  A null line in response to a prompt, or an interrupt, will abort the
 A null line in response to a prompt,  dialogue and return you to the remote machine.
 or an interrupt, will abort the dialogue and return you to the  
 remote machine.  
 .Pp  .Pp
 .Nm  .Nm
 guards against multiple users connecting to a remote system  guards against multiple users connecting to a remote system by opening
 by opening modems and terminal lines with exclusive access,  modems and terminal lines with exclusive access, and by honoring the
 and by honoring the locking protocol used by  locking protocol used by
 .Xr uucico 8 .  .Xr uucico 8 .
 .Pp  .Pp
 During file transfers  During file transfers
Line 260 
Line 299 
 .Dq eofread  .Dq eofread
 and  and
 .Dq eofwrite  .Dq eofwrite
 variables are used to recognize end-of-file when reading, and  variables are used to recognize end-of-file when reading, and specify
 specify end-of-file when writing (see below).  end-of-file when writing (see below).
 File transfers normally depend on tandem mode for flow control.  File transfers normally depend on tandem mode for flow control.
 If the remote system does not support tandem mode,  If the remote system does not support tandem mode,
 .Dq echocheck  .Dq echocheck
Line 272 
Line 311 
 .Pp  .Pp
 When  When
 .Nm  .Nm
 must dial a phone number to connect to a system it will print  must dial a phone number to connect to a system it will print various
 various messages indicating its actions.  messages indicating its actions.
 .Nm  .Nm
 supports the  supports a variety of auto-call units and modems with the
 .Tn DEC DN Ns -11  .Ar at
 and  capability in system descriptions.
 Racal-Vadic 831 auto-call-units;  .Pp
 the  Support for Ventel 212+ (ventel), Hayes AT-style (hayes),
 .Tn DEC DF Ns \&02  USRobotics Courier (courier), Telebit T3000 (t3000) and
 and  Racal-Vadic 831 (vadic) units is enabled by default.
 .Tn DF Ns \&03 ,  .Pp
 Ventel 212+, Racal-Vadic 3451, and  Support for Bizcomp 1031[fw] (biz31[fw]), Bizcomp 1022[fw]
 Bizcomp 1031 and 1032 integral call unit/modems.  (biz22[fw]), DEC DF0[23]-AC (df0[23]), DEC DN-11 (dn11) and
   Racal-Vadic 3451 (v3451) units can be added by recompiling
   .Xr tip 1
   with the appropriate defines.
   .Pp
   Note that if support for both the Racal-Vadic 831 and 3451 is enabled
   they are referred to as the v831 and v3451 respectively.
   If only one of the two is supported, it is referred to as vadic.
 .Ss VARIABLES  .Ss VARIABLES
 .Nm  .Nm
 maintains a set of variables  maintains a set of variables which control its operation.
 which control its operation.  
 Some of these variables are read-only to normal users (root is allowed  Some of these variables are read-only to normal users (root is allowed
 to change anything of interest).  to change anything of interest).
 Variables may be displayed and set through the  Variables may be displayed and set through the
Line 302 
Line 347 
 .Dq all  .Dq all
 as an argument to the set command displays all variables readable by  as an argument to the set command displays all variables readable by
 the user.  the user.
 Alternatively, the user may request display of a particular  Alternatively, the user may request display of a particular variable
 variable by attaching a  by attaching a
 .Ql ?  .Ql ?
 to the end.  to the end.
 For example,  For example,
Line 311 
Line 356 
 displays the current escape character.  displays the current escape character.
 .Pp  .Pp
 Variables are numeric, string, character, or boolean values.  Variables are numeric, string, character, or boolean values.
 Boolean  Boolean variables are set merely by specifying their name; they may be
 variables are set merely by specifying their name; they may be reset  reset by prepending a
 by prepending a  
 .Ql !  .Ql !
 to the name.  to the name.
 Other variable types are set by concatenating an  Other variable types are set by concatenating an
 .Ql =  .Ql =
 and the value.  and the value.
 The entire assignment must not have any blanks in it.  The entire assignment must not have any blanks in it.
 A single set command may be used to interrogate  A single set command may be used to interrogate as well as set a
 as well as set a number of variables.  number of variables.
 Variables may be initialized at run time by placing set commands  Variables may be initialized at run time by placing set commands
 (without the  (without the
 .Ql ~s  .Ql ~s
Line 334 
Line 378 
 .Nm  .Nm
 to display the sets as they are made.  to display the sets as they are made.
 Certain common variables have abbreviations.  Certain common variables have abbreviations.
 The following is a list of common variables,  The following is a list of common variables, their abbreviations, and
 their abbreviations, and their default values:  their default values:
 .Bl -tag -width Ar  .Bl -tag -width Ar
 .It Ar beautify  .It Ar beautify
 (bool) Discard unprintable characters when a session is being scripted;  (bool) Discard unprintable characters when a session is being
 abbreviated  scripted; abbreviated
 .Ar be .  .Ar be .
 .It Ar baudrate  .It Ar baudrate
 (num) The baud rate at which the connection was established;  (num) The baud rate at which the connection was established;
 abbreviated  abbreviated
 .Ar ba .  .Ar ba .
 .It Ar dialtimeout  .It Ar dialtimeout
 (num) When dialing a phone number, the time (in seconds)  (num) When dialing a phone number, the time (in seconds) to wait for a
 to wait for a connection to be established; abbreviated  connection to be established; abbreviated
 .Ar dial .  .Ar dial .
 .It Ar echocheck  .It Ar echocheck
 (bool) Synchronize with the remote host during file transfer by  (bool) Synchronize with the remote host during file transfer by
Line 374 
Line 418 
 default value is  default value is
 .Ql ~ .  .Ql ~ .
 .It Ar exceptions  .It Ar exceptions
 (str) The set of characters which should not be discarded  (str) The set of characters which should not be discarded due to the
 due to the beautification switch; abbreviated  beautification switch; abbreviated
 .Ar ex ;  .Ar ex ;
 default value is  default value is
 .Dq \et\en\ef\eb .  .Dq \et\en\ef\eb .
Line 399 
Line 443 
 default value is  default value is
 .Ql \en .  .Ql \en .
 This value is used to synchronize during data transfers.  This value is used to synchronize during data transfers.
 The count of lines transferred during a file transfer  The count of lines transferred during a file transfer command is based
 command is based on receipt of this character.  on receipt of this character.
 .It Ar raise  .It Ar raise
 (bool) Upper case mapping mode; abbreviated  (bool) Upper case mapping mode; abbreviated
 .Ar ra ;  .Ar ra ;
Line 432 
Line 476 
 is  is
 .Li true ,  .Li true ,
 .Nm  .Nm
 will record everything transmitted by the remote machine in  will record everything transmitted by the remote machine in the script
 the script record file specified in  record file specified in
 .Ar record .  .Ar record .
 If the  If the
 .Ar beautify  .Ar beautify
 switch is on, only printable  switch is on, only printable
 .Tn ASCII  .Tn ASCII
 characters will be included in  characters will be included in the script file (those characters
 the script file (those characters between 040 and 0177).  between 040 and 0177).
 The variable  The variable
 .Ar exceptions  .Ar exceptions
 is used to indicate characters which are an exception to the normal  is used to indicate characters which are an exception to the normal
Line 458 
Line 502 
 .Ar true .  .Ar true .
 When verbose mode is enabled,  When verbose mode is enabled,
 .Nm  .Nm
 prints messages while dialing, shows the current number  prints messages while dialing, shows the current number of lines
 of lines transferred during a file transfer operations,  transferred during a file transfer operations, and more.
 and more.  
 .El  .El
 .Sh ENVIRONMENT  .Sh ENVIRONMENT
 .Bl -tag -width Fl  .Bl -tag -width Fl
 .It Ev SHELL  .It Ev SHELL
 (str) The name of the shell to use for the  The name of the shell to use for the
 .Ic ~!  .Ic ~!
 command; default value is  command; default value is
 .Dq /bin/sh ,  .Dq /bin/sh .
 or taken from the environment.  
 .It Ev HOME  .It Ev HOME
 (str) The home directory to use for the  The home directory to use for the
 .Ic ~c  .Ic ~c
 command; default value is taken from the environment.  command.
 .It Ev HOST  .It Ev HOST
 Check for a default host if none specified.  The default value for
   .Ar system-name
   if none is specified via the command line.
   .It Ev REMOTE
   A system description, or an absolute path to a
   .Xr remote 5
   system description database.
   .It Ev PHONES
   A path to a
   .Xr phones 5
   database.
 .El  .El
 .Pp  
 The variables  
 .Ev ${REMOTE}  
 and  
 .Ev ${PHONES}  
 are also exported.  
 .Sh FILES  .Sh FILES
 .Bl -tag -width /var/spool/lock/LCK..* -compact  .Bl -tag -width "/var/spool/lock/LCK..*" -compact
 .It Pa /etc/remote  .It Pa /etc/remote
 global system descriptions  global
   .Xr remote 5
   database
 .It Pa /etc/phones  .It Pa /etc/phones
 global phone number database  default
 .It ${REMOTE}  .Xr phones 5
 private system descriptions  file
 .It ${PHONES}  
 private phone numbers  
 .It Pa ~/.tiprc  .It Pa ~/.tiprc
 initialization file  initialization file
 .It Pa tip.record  .It Pa tip.record

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14