⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kibitz.man

📁 测试中用于交互的一个脚本.在自动化脚本中会用得到.希望对您有帮助.
💻 MAN
字号:
.TH KIBITZ 1 "28 January 2001".SH NAMEkibitz \- allow two people to interact with one shell.SH SYNOPSIS.B kibitz[.I kibitz-args].I user[.I program program-args...].br.B kibitz[.I kibitz-args].I user@host[.I program program-args...].SH INTRODUCTION.B kibitzallows two (or more) people to interact with one shell (or any arbitraryprogram).  Uses include:.RS.TP 4\(buA novice user can ask an expert user for help.  Using.BR kibitz ,the expert can see what the user is doing, and offer advice orshow how to do it right..TP\(buBy running.B kibitzand then starting a full-screen editor, people may carry out aconversation, retaining the ability to scroll backwards,save the entire conversation, or even edit it while in progress..TP\(buPeople can team up on games, document editing, or other cooperativetasks where each person has strengths and weaknesses that complement oneanother..SH USAGETo start.BR kibitz ,user1runs kibitz with the argument of theuser to kibitz.  For example:	kibitz user2.B kibitzstarts a new shell (or another program, if given on the commandline), while prompting user2 to run.BR kibitz .If user2 runs.B kibitzas directed, the keystrokes of both users become the input ofthe shell.  Similarly, both users receive the output from theshell.To terminate.B kibitzit suffices to terminate the shell itself.  For example, if either usertypes ^D (and the shell accepts this to be EOF), the shell terminatesfollowed by.BR kibitz .Normally, all characters are passed uninterpreted.  However, if theescape character (described when.B kibitzstarts) is issued, the usermay talk directly to the.B kibitzinterpreter.  Currently the only option is to exit the program.Also, job control may be used while in the interpreter, to, for example,suspend or restart.BR kibitz .Various processescan provide various effects.  For example, you can emulate a two-way write(1)session with the command:	kibitz user2 sleep 1000000.SH ARGUMENTS.B kibitztakes arguments, these should also be separated by whitespace.The.B \-noprocflag runs.B kibitzwith no process underneath.  Characters are passed to the other.BR kibitz .This is particularly useful for connecting multipleinteractive processes together.In this mode, characters are not echoed back to the typist..B \-noescapedisables the escape character..BI \-escape " char"sets the escape character.  The default escape character is ^]..B \-silentturns off informational messages describing what kibitz is doing toinitiate a connection..BI \-tty " ttyname"defines the tty to which the invitation should be sent.If you start.B kibitzto user2 on a remote computer,.B kibitzperforms a.B rloginto the remote computer with your current username. The flag.BI \-proxy " username"causes.B rloginto use.I usernamefor the remote login (e.g. if your account on the remote computer has a different username). If the.B -proxyflag is not given,.B kibitztries to determine your current username by (in that order) inspecting theenvironment variables USER and LOGNAME, then by using the commands.B whoamiand.BR logname .The arguments.B -noescapeand.B -escapecan also be given by user2 when prompted to run.BR kibitz ..SH MORE THAN TWO USERSThe current implementation of kibitz explicitly understands only two users,however, it is nonetheless possible to have a three (or more) -way kibitz,by kibitzing another.BR kibitz .For example, the following command runs.B kibitzwith the current user, user2, and user3:	% kibitz user2 kibitz user3Additional users may be added by simply appending more "kibitz user"commands..SH CAVEATS.B kibitzassumes the 2nd user has the same terminal type and size as the 1st user.If this assumption is incorrect, graphical programs may display oddly..B kibitzhandles character graphics, but cannot handle bitmapped graphics.  Thus,.nf	% xterm -e kibitz    will work	% kibitz xterm       will not work.fi.B kibitzuses the same permissions as used by rlogin, rsh, etc.  Thus, youcan only.B kibitzto users at hosts for which you can rlogin.Similarly,.B kibitzwill prompt for a password on the remote host ifrlogin would.If you.B kibitzto users at remote hosts,.B kibitzneeds to distinguish your prompt from other things that may precede itduring login.(Ideally, the end of it is preferred but any part should suffice.)If you have an unusual prompt,set the environment variable EXPECT_PROMPT to an egrep(1)-styleregular expression.Brackets should be preceded with one backslash in ranges,and three backslashes for literal brackets.The default prompt r.e. is "(%|#|\\$)\\s"..B kibitzrequires the.B kibitzprogram on both hosts..B kibitzrequires.BR expect (1).This version "should be" but is not compatible with the originalprogram (yet)..SH BUGSAn early version of Sun's tmpfs had a bug in it that causes.B kibitzto blow up.  If.B kibitzreports "error flushing ...: Is a directory"ask Sun for patch #100174.If your Expect is not compiled with multiple-process support (i.e., you do not have a working select or poll), you will not be able to run kibitz..SH ENVIRONMENTThe environment variable SHELL is used to determine the shell to start, if noother program is given on the command line.If the environment variable EXPECT_PROMPT exists, it is taken as a regularexpression which matches the end of your login prompt (but does not otherwiseoccur while logging in). See also CAVEATS above.If the environment variables USER or LOGNAME are defined, they are used to determine the current user name for a.B kibitzto a remote computer. See description of the.B -proxyoption in ARGUMENTS above..SH SEE ALSO.BR Perl (1),.BR Expect (3),.BR Tcl (3),.BR libexpect (3),.br.I"Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Programs"\fRby Don Libes,O'Reilly and Associates, January 1995..br.I"Kibitz \- Connecting Multiple Interactive Programs Together", \fRby Don Libes,Software \- Practice & Experience, John Wiley & Sons, West Sussex, England,Vol. 23, No. 5, May, 1993..SH AUTHORDon Libes, National Institute of Standards and Technology.B kibitzis in the public domain.NIST and I wouldappreciate credit if this program or parts of it are used.Ported to.B Perl.B Expectmodule by Lee Eakin, Texas Instruments Inc.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -