Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tip(1C) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cu(1C)

ftp(1N)

telnet(1N)

uucp(1C)

dialup(4)

remote(4)

phones(4)




tip(1C) tip(1C)
NAME tip - connect to a remote system SYNOPSIS tip [-v] [-speed] system-name tip [-v] [-speed] phone-number DESCRIPTION tip establishes a full-duplex connection to another machine, giving the appearance of being logged in directly on the re- mote CPU. You must have a login (or equivalent) on the machine to which you wish to connect. Typed characters are normally transmitted directly to the remote machine (which does the echoing as well). A tilde (~) appearing as the first character of a line is an escape signal; the following are recognized. ~. Drop the connection and exit (you may still be logged in on the remote machine). You may also use ~CONTROL-D as a synonym for ~.. ~c[name] Change directory to name (no argument implies change to your home directory). ~! Escape to a shell (exiting the shell will re- turn you to tip). ~> Copy file from local to remote. tip prompts for the name of a local file to transmit. ~< Copy file from remote to local. tip prompts first for the name of the file to be sent, then for a command to be executed on the remote machine. ~p from [to] Send a file to a remote UNIX host. The put command causes the remote UNIX system to run the command string cat>'to', while tip sends it the from file. If the to file isn't specified, the from filename is used. This command is ac- tually a UNIX-specific version of the ~> com- mand. ~t from [to] Take a file from a remote UNIX host. As in the put command, the to file defaults to the from filename if the to file isn't specified. The remote host executes the command string cat 'from';echo CONTROL-A April, 1990 1



tip(1C) tip(1C)
to send the file to tip. ~| Pipe the output from a remote command to a lo- cal UNIX process. tip will prompt the user for both the remote command and the local command. The command string sent to the local UNIX sys- tem is processed by the shell. Note that the eofread variable should be set to the appropri- ate value before this escape is used. ~# Send an interrupt signal to the remote system. For systems that do not support the necessary ioctl call, the break is simulated by a se- quence of line speed changes and delete charac- ters. ~s Set a variable (see the discussion later in this section). ~CONTROL-Z Stop tip (available only with job control). ~? Get a summary of the tilde escapes tip uses the file /etc/remote to find how to reach a partic- ular system and to find out how it should operate while talking to the system. Each system has a default baud with which to establish a connection. If this value is not suit- able, the baud to be used may be specified on the command line, for example, tip -300 mds. If the baud rate is speci- fied as 300 baud but no system name is supplied, then tip assumes that a host with the name tip300 exists in the /etc/remote file. Similarly, if no speed is specified but a telephone number is provided, then tip looks for a host with the name tip0. Refer to remote(4) for a full description. When tip establishes a connection, it sends out a connection message to the remote system; the default value, if any, is defined in /etc/remote. tip also uses /etc/dialup to determine which modem escape sequences to use; refer to remote(4) and dialup(4) for de- tails. When tip prompts for an argument (for example, during setup of a file transfer), the line typed may be edited with the standard erase and kill characters. A null line in response to a prompt or an interrupt will abort the dialogue and re- turn to the remote machine. tip guards against multiple users connecting to a remote system by opening modems and terminal lines with exclusive access, and by honoring the locking protocol used by 2 April, 1990



tip(1C) tip(1C)
uucp(1C). During file transfers, tip provides a running count of the number of lines transferred. When using the ~> and ~< com- mands, the eofread and eofwrite variables are used to recog- nize end-of-file when reading, and specify end-of-file when writing (see ``Variables'' later in this section). File transfers normally depend on ixon/ixoff mode for flow con- trol (see stty(1)). If the remote system does not support ixon/ixoff mode, echocheck may be set to indicate that tip should synchronize with the remote system on the echo of each transmitted character. When tip must dial a telephone number to connect to a sys- tem, it will print various messages indicating its actions. tip supports the DEC DN-11 and Racal-Vadic 831 auto-call- units; the DEC DF02 and DF03, Ventel 212+, Racal-Vadic 3451, Bizcomp 1031 and 1032 integral call unit/modems, and Apple modems. VARIABLES tip maintains a set of variables that control its operation. Some of these variables are read-only to normal users (root is allowed to change anything of interest). Variables may be displayed and set through the s escape. The syntax for variables is patterned after vi(1) and mailx(1). Supplying all as an argument to the set command displays all variables readable by the user. Alternatively, the user may request display of a particular variable by attaching a ? to the end. For example, escape? displays the current escape char- acter. Variables are numeric, string, character, or boolean values. Boolean variables are set merely by specifying their names; they may be reset by prefixing a ! to the name. Other vari- able types are set by concatenating an = and the value. The entire assignment must not have any blanks in it. A single set command may be used to interrogate, as well as set, a number of variables. Variables may be initialized at run time by placing set commands (without the ~s prefix in the file .tiprc in the user's home directory). The -v flag op- tion causes tip to display the sets as they are made. Cer- tain common variables have abbreviations. Following is a list of common variables, with a description of each one, an abbreviation, and a default value (when applicable). The data type of each variable is listed in parentheses. baudrate (num) The baud at which the connection was esta- blished; abbreviated ba. beautify (bool) Discard unprintable characters when a ses- sion is being scripted; abbreviated be. April, 1990 3



tip(1C) tip(1C)
dialtimeout (num) When dialing a telephone number, the time (in seconds) needed for a connection to be esta- blished; abbreviated dial. echocheck (bool) Synchronize with the remote host during file transfer by waiting for the echo of the last character to be transmitted; default is false. eofcmd (str) The string sent to indicate the end of re- mote command output (usually a prompt string) dur- ing a ~| pipe. eofread (str) The set of characters which signify an end- of-transmission during a ~< file transfer command; abbreviated eofr. eofwrite (str) The string sent to indicate end-of- transmission during a ~> file transfer command; abbreviated eofw. eol (str) The set of characters which indicate an end-of-line. tip will recognize escape characters only after an end-of-line. escape (char) The command prefix (escape) character; ab- breviated es; default value is tilde (~). exceptions (str) The set of characters which should not be discarded due to the beautification switch; abbre- viated ex; default value is \t\n\f\b. force (char) The character used to force literal data transmission; abbreviated fo; default value is CONTROL-P. framesize (num) The amount of data (in bytes) to buffer between file system writes when receiving files; abbreviated fr. halfduplex (bool) Connection is half-duplex; abbreviated hdx. Default is false. host (str) The name of the host connected to; abbrevi- ated ho. localecho (bool) Echo input locally; abbreviated le. De- fault is false. log (str) The name of the file in which to log tran- 4 April, 1990



tip(1C) tip(1C)
saction activity reports. default value is /usr/adm/aculog. prompt (char) The character which indicates an end-of- line on the remote host; abbreviated pr; default value is \n. This value is used to synchronize during data transfers. The count of lines transferred during a file transfer command is based on receipt of this character. raise (bool) Uppercase mapping mode; abbreviated ra; de- fault value is false. When this mode is enabled, all lowercase letters will be mapped to uppercase by tip for transmission to the remote machine. raisechar (char) The input character used to toggle upper- case mapping mode; abbreviated rc; default value is CONTROL-@. record (str) The name of the file in which a session script is recorded; abbreviated rec; default value is tip.record. script (bool) Session scripting mode; abbreviated sc; de- fault is false. When script is true, tip will record everything transmitted by the remote machine in the script record file specified in record. If the beautify switch is on, only print- able ASCII characters will be included in the script file (those characters between 040 and 0177). The variable exceptions is used to indi- cate characters which are an exception to the nor- mal beautification rules. tabexpand (bool) Expand tabs to spaces during file transfers; abbreviated tab; default value is false. Each tab is expanded to 8 spaces. verbose (bool) Verbose mode; abbreviated verb; default is true. When verbose mode is enabled, tip prints messages while dialing, shows the current number of lines transferred during a file transfer opera- tion, and more. SHELL (str) The name of the shell to use for the ~! com- mand; default value is /bin/sh or taken from the environment. HOME (str) The home directory to use for the ~c com- mand; default value is taken from the environment. April, 1990 5



tip(1C) tip(1C)
FILES /usr/ucb/tip /etc/dialup modem escape sequences /etc/remote global system descriptions /etc/phones global telephone number data base ${REMOTE} private system descriptions ${PHONES} private telephone numbers ~/.tiprc initialization file /usr/spool/uucp/LCK* lock file to avoid conflicts with uucp SEE ALSO cu(1C), ftp(1N), telnet(1N), uucp(1C), dialup(4), remote(4), phones(4). ``Using cu'' in A/UX Communications User's Guide. BUGS The full set of variables is undocumented and probably should be pared down. 6 April, 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026