·
- A novice user can ask an expert user for help. Using kibitz, the expert can see what the user is doing, and offer adviceor show how to do it right.
·- By running kibitz and then starting a full-screeneditor, people may carry out a conversation, retaining the ability to scrollbackwards, save the entire conversation, or even edit it while in progress.
·- People can team up on games, document editing, or other cooperative taskswhere each person has strengths and weaknesses that complement one another.
kibitz user2
kibitz starts a new shell (or another program, if given on the commandline), while prompting user2 to run kibitz. If user2 runs kibitz as directed,the keystrokes of both users become the input of the shell. Similarly,both users receive the output from the shell.
To terminate kibitz it sufficesto terminate the shell itself. For example, if either user types ^D (andthe shell aclearcase/" target="_blank" >ccepts this to be EOF), the shell terminates followed by kibitz.
Normally, all characters are passed uninterpreted. However, if the escapecharacter (described when kibitz starts) is issued, the user may talk directlyto the kibitz interpreter. Any Expect(1) or Tcl(3) commands may be given.Also, job control may be used while in the interpreter, to, for example,suspend or restart kibitz.
Various processes can provide various effects. For example, you can emulate a two-way write(1) session with the command:
kibitz user2 sleep 1000000
The -noproc flag runs kibitz with no process underneath. Characters arepassed to the other kibitz. This is particularly useful for connecting multipleinteractive processes together. In this mode, characters are not echoedback to the typist.
-noescape disables the escape character.
-escape charsets the escape character. The default escape character is ^].
-silent turnsoff informational messages describing what kibitz is doing to initiatea connection.
-tty ttyname defines the tty to which the invitation shouldbe sent.
If you start kibitz to user2 on a remote computer, kibitz performsa rlogin to the remote computer with your current username. The flag -proxyusername causes rlogin to use username for the remote login (e.g. if youraccount on the remote computer has a different username). If the -proxyflag is not given, kibitz tries to determine your current username by (inthat order) inspecting the environment variables USER and LOGNAME, thenby using the commands whoami and logname.
The arguments -noescape and -escapecan also be given by user2 when prompted to run kibitz.
% kibitz user2 kibitz user3
Additional users may be added by simply appending more "kibitz user"commands.
The xkibitz script is similar to kibitz but supports the abilityto add additional users (and drop them) dynamically.
kibitz handlescharacter graphics, but cannot handle bitmapped graphics. Thus,
% xterm -e kibitz will workHowever, you can get the effect of the latter command by using xkibitz (see SEE ALSO below). kibitz uses the same permissions as used by rlogin,rsh, etc. Thus, you can only kibitz to users at hosts for which you canrlogin. Similarly, kibitz will prompt for a password on the remote hostif rlogin would.
% kibitz xterm will not work
If you kibitz to users at remote hosts, kibitz needs todistinguish your prompt from other things that may precede it during login.(Ideally, the end of it is preferred but any part should suffice.) If youhave an unusual prompt, set the environment variable EXPECT_PROMPT to anegrep(1)-style regular expression. Brackets should be preceded with one backslashin ranges, and three backslashes for literal brackets. The default promptr.e. is "($|%|#) ".
kibitz requires the kibitz program on both hosts. kibitzrequires expect(1).
By comparison, the xkibitz script uses the X authorizationmechanism for inter-host communication so it does not need to login, recognizeyour prompt, or require kibitz on the remote host. It does however needpermission to access the other X servers.
If your Expect isnot compiled with multiple-process support (i.e., you do not have a workingselect or poll), you will not be able to run kibitz.
If the environment variable EXPECT_PROMPTexists, it is taken as a regular expression which matches the end of yourlogin prompt (but does not otherwise occur while logging in). See also CAVEATSabove.
If the environment variables USER or LOGNAME are defined, they areused to determine the current user name for a kibitz to a remote computer.See description of the -proxy option in ARGUMENTS above.
and Technology
kibitz is in the public domain. NIST and I would appreciatecredit if this program or parts of it are used.
Table of Contents