📄 tip.1
字号:
.\" Copyright (c) 1980, 1990, 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..\".\" @(#)tip.1 8.4 (Berkeley) 4/18/94.\".Dd April 18, 1994.Dt TIP 1.Os BSD 4.Sh NAME.Nm tip ,.Nm cu.Nd connect to a remote system.Sh SYNOPSIS.Nm tip.Op Fl v.Fl Ns Ns Ar speed .Ar system\-name.Nm tip.Op Fl v.Fl Ns Ns Ar speed .Ar phone\-number.Nm cu.Ar phone\-number.Op Fl t.Op Fl s Ar speed.Op Fl a Ar acu.Op Fl l Ar line.Op Fl #.Sh DESCRIPTION.Nm Tipand.Ar cuestablish a full-duplex connection to another machine,giving the appearance of being logged in directly on theremote cpu. It goes without saying that you must have a loginon the machine (or equivalent) to which you wish to connect.The preferred interface is.Nm tip .The.Ar cuinterface is included for those people attached to the``call.Ux Ns ''command of version 7. This manual pagedescribes only.Nm tip ..PpAvailable Option:.Bl -tag -width indent.It Fl vSet verbose mode..El.PpTyped characters are normally transmitted directly to the remotemachine (which does the echoing as well). A tilde (`~') appearingas the first character of a line is an escape signal; the followingare recognized:.Bl -tag -width flag.It Ic \&~^D No or Ic \&~ .Drop the connection and exit(you may still be logged in on theremote machine)..It Ic \&~c Op Ar name Change directory to.Ar name(no argumentimplies change to your home directory)..It Ic \&~!Escape to a shell (exiting the shell willreturn you to tip)..It Ic \&~>Copy file from local to remote..Nm Tipprompts for the name of a local file to transmit..It Ic \&~<Copy file from remote to local..Nm Tipprompts first for the name of the file to be sent, then fora command to be executed on the remote machine..It Ic \&~p Ar from Op Ar to Send a file to a remote.Uxhost. The put command causes the remote.Uxsystem to run the command string ``cat > 'to''', while.Nm tipsends it the ``from''file. If the ``to'' file isn't specified the ``from'' file name is used.This command is actually a.Uxspecific version of the ``~>'' command..It Ic \&~t Ar from Op Ar to Take a file from a remote.Uxhost.As in the put command the ``to'' filedefaults to the ``from'' file name if it isn't specified.The remote hostexecutes the command string ``cat 'from';echo ^A'' to send the file to.Nm tip ..It Ic \&~|Pipe the output from a remote command to a local.Uxprocess.The command string sent to the local.Uxsystem is processed by the shell..It Ic \&~$Pipe the output from a local.Uxprocess to the remote host.The command string sent to the local.Uxsystem is processed by the shell..It Ic \&~CFork a child process on the local system to perform special protocolssuch as \s-1XMODEM\s+1. The child program will be run with the followingsomewhat unusual arrangement of file descriptors:.nf.in +1i0 <-> local tty in1 <-> local tty out2 <-> local tty out3 <-> remote tty in4 <-> remote tty out.in -1i.fi.It Ic \&~#Send a.Dv BREAKto the remote system.For systems which don't support thenecessary.Ar ioctlcall the break is simulated by a sequence of line speed changesand.Dv DELcharacters..It Ic \&~sSet a variable (see the discussion below)..It Ic \&~^ZStop.Nm tip(only available with job control)..It Ic \&~^YStop only the ``local side'' of.Nm tip(only available with job control);the ``remote side'' of.Nm tip ,the side that displays output from the remote host, is left running..It Ic \&~?Get a summary of the tilde escapes.El.Pp.Nm Tipuses the file.Pa /etc/remoteto find how to reach a particularsystem and to find out how it should operate while talkingto the system;refer to.Xr remote 5for a full description.Each system has a default baud rate with which toestablish a connection. If this value is not suitable, the baud rateto be used may be specified on the command line, e.g..Ql "tip -300 mds" ..PpWhen.Nm tipestablishes a connection it sends out aconnection message to the remote system; the default value, if any,is defined in.Pa /etc/remote(see.Xr remote 5 ) ..PpWhen.Nm tipprompts for an argument (e.g. during setup ofa file transfer) the line typed may be edited with the standarderase and kill characters. A null line in response to a prompt,or an interrupt, will abort the dialogue and return you to theremote machine..Pp.Nm Tipguards against multiple users connecting to a remote systemby opening modems and terminal lines with exclusive access,and by honoring the locking protocol used by.Xr uucico 8 ..PpDuring file transfers.Nm tipprovides a running count of the number of lines transferred.When using the ~> and ~< commands, the ``eofread'' and ``eofwrite''variables are used to recognize end-of-file when reading, andspecify end-of-file when writing (see below). File transfersnormally depend on tandem mode for flow control. If the remotesystem does not support tandem mode, ``echocheck'' may be setto indicate.Nm tipshould synchronize with the remote system on the echo of eachtransmitted character..PpWhen.Nm tipmust dial a phone number to connect to a system it will printvarious messages indicating its actions..Nm Tipsupports the.Tn DEC DN Ns-11andRacal-Vadic 831 auto-call-units;the.Tn DEC DF Ns \&02and.Tn DF Ns \&03 ,Ventel 212+, Racal-Vadic 3451, andBizcomp 1031 and 1032 integral call unit/modems..Ss VARIABLES.Nm Tipmaintains a set of.Ar variableswhich control its operation.Some of these variables are read-only to normal users (root is allowedto change anything of interest). Variables may be displayedand set through the ``s'' escape. The syntax for variables is patternedafter.Xr vi 1and.Xr Mail 1 .Supplying ``all''as an argument to the set command displays all variables readable bythe user. Alternatively, the user may request display of a particularvariable by attaching a `?' to the end. For example ``escape?''displays the current escape character..PpVariables are numeric, string, character, or boolean values. Booleanvariables are set merely by specifying their name; they may be resetby prepending a `!' to the name. Other variable types are set byconcatenating an `=' and the value. The entire assignment must nothave any blanks in it. A single set command may be used to interrogateas well as set a number of variables.Variables may be initialized at run time by placing set commands(without the ``~s'' prefix in a file.Pa .tiprcin one's home directory). The.Fl voption causes.Nm tipto display the sets as they are made.Certain common variables have abbreviations.The following is a list of common variables,their abbreviations, and their default values..Bl -tag -width Ar.It Ar beautify(bool) Discard unprintable characters when a session is being scripted;abbreviated.Ar be ..It Ar baudrate(num) The baud rate at which the connection was established;abbreviated.Ar ba ..It Ar dialtimeout(num) When dialing a phone number, the time (in seconds)to wait for a connection to be established; abbreviated.Ar dial ..It Ar echocheck(bool) Synchronize with the remote host during file transfer bywaiting for the echo of the last character transmitted; default is.Ar off ..It Ar eofread(str) The set of characters which signify an end-of-transmissionduring a ~< file transfer command; abbreviated.Ar eofr ..It Ar eofwrite(str) The string sent to indicate end-of-transmission duringa ~> file transfer command; abbreviated.Ar eofw ..It Ar eol(str) The set of characters which indicate an end-of-line..Nm Tipwill recognize escape characters only after an end-of-line..It Ar escape(char) The command prefix (escape) character; abbreviated.Ar es ;default value is `~'..It Ar exceptions(str) The set of characters which should not be discardeddue to the beautification switch; abbreviated.Ar ex ;default value is ``\et\en\ef\eb''..It Ar force(char) The character used to force literal data transmission;abbreviated.Ar fo ;default value is `^P'..It Ar framesize(num) The amount of data (in bytes) to buffer between file systemwrites when receiving files; abbreviated.Ar fr ..It Ar host(str) The name of the host to which you are connected; abbreviated.Ar ho ..It Ar prompt(char) The character which indicates an end-of-line on the remotehost; abbreviated.Ar pr ;default value is `\en'. This value is used to synchronize duringdata transfers. The count of lines transferred during a file transfercommand is based on receipt of this character..It Ar raise(bool) Upper case mapping mode; abbreviated.Ar ra ;default value is.Ar off .When this mode is enabled, all lower case letters will be mapped toupper case by.Nm tipfor transmission to the remote machine..It Ar raisechar(char) The input character used to toggle upper case mapping mode;abbreviated.Ar rc ;default value is `^A'..It Ar record(str) The name of the file in which a session script is recorded;abbreviated.Ar rec ;default value is ``tip.record''..It Ar script(bool) Session scripting mode; abbreviated.Ar sc ;default is.Ar off .When.Ar scriptis.Li true ,.Nm tipwill record everything transmitted by the remote machine inthe script record file specified in.Ar record .If the.Ar beautifyswitch is on, only printable.Tn ASCIIcharacters will be included inthe script file (those characters betwee 040 and 0177). Thevariable.Ar exceptionsis used to indicate characters which are an exception to the normalbeautification rules..It Ar tabexpand(bool) Expand tabs to spaces during file transfers; abbreviated.Ar tab ;default value is.Ar false .Each tab is expanded to 8 spaces..It Ar verbose(bool) Verbose mode; abbreviated.Ar verb ;default is.Ar true .When verbose mode is enabled,.Nm tipprints messages while dialing, shows the current numberof lines transferred during a file transfer operations,and more..El.Sh ENVIRONMENT.Nm Tipuses the following environment variables:.Bl -tag -width Fl.It Ev SHELL(str) The name of the shell to use for the ~! command; defaultvalue is ``/bin/sh'', or taken from the environment..It Ev HOME(str) The home directory to use for the ~c command; defaultvalue is taken from the environment..It Ev HOSTCheck for a default host if none specified..El.PpThe variables.Ev ${REMOTE}and.Ev ${PHONES}are also exported..Sh FILES.Bl -tag -width /var/spool/uucp/LCK..* -compact.It Pa /etc/remoteGlobal system descriptions..It Pa /etc/phonesGlobal phone number data base..It ${REMOTE}Private system descriptions..It ${PHONES}Private phone numbers..It ~/.tiprcInitialization file..It Pa tip.recordRecord file..It /var/log/aculogLine access log..It Pa /var/spool/uucp/LCK..*Lock file to avoid conflicts with.Xr uucp ..El.Sh DIAGNOSTICSDiagnostics are, hopefully, self explanatory..Sh SEE ALSO.Xr remote 5 ,.Xr phones 5.Sh HISTORYThe.Nm tipappeared command in.Bx 4.2 ..Sh BUGSThe full set of variables is undocumented and should, probably, bepared down.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -