10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All,
I have some xml files and I need to find out all xml where one specific type of pattern is available..
Pattern 1
==========
<MAP TIMEOUT="" MODE="STANDALONE">
<COMMENT>without Any Mapping</COMMENT>
</MAP>
Pattern 2
==========
<MAP TIMEOUT="" MODE="STANDALONE">
... (4 Replies)
Discussion started by: Baharul
4 Replies
2. Shell Programming and Scripting
I am looking for help in processing of those options: '-n' or '-p'
I understand what they do and how to use them.
But, I would like to use them with more than one file (and without any shell-loop; loading the 'perl' once.)
I did try it and -n works on 2 files.
Question is:
- is it possible to... (6 Replies)
Discussion started by: alex_5161
6 Replies
3. UNIX for Advanced & Expert Users
Hello,
I'm attempting to open multiple xterms and run a command as an SAP user via sudo using PSSH. So far, I'm able to run PSSH to a file of servers with no check for keys, open every xterm in to the servers in the file list, and SUDO to the SAP(ADM) user, but it won't do anything else... (11 Replies)
Discussion started by: icemanj
11 Replies
4. Shell Programming and Scripting
I'm using the below to get multiple input from USER and it is working, is there any better way in awk array single liner?
echo "Enter Multiple input (Ctrl+d to exit)"
>output
while read A
do
echo "$A" >>output
done (3 Replies)
Discussion started by: Roozo
3 Replies
5. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
6. Shell Programming and Scripting
how can I pass multiple values from command line arguments
example
script.sh -arg1 op1 -arg2 op1 op2 op3 (2 Replies)
Discussion started by: nsk
2 Replies
7. Shell Programming and Scripting
Hi
Can we run the linux command and per script in a single command
$ cd /usr/local/adm/ ;ctsv scmtest_qabuild ;cspec.pl scmtest
This is a combination of linux and clearcase command and last one is perl script with argument.
I can see the first and 2nd coomand is executing but last... (6 Replies)
Discussion started by: anuragpgtgerman
6 Replies
8. Shell Programming and Scripting
Hi, I need some help with sending commands to multiple xterms. What I do is ssh -Y to a remote box, and then open up 4 shells (csh) and on each one I run a different program in sequence -- one of them has 2, the first of which goes into the background and after you hit "enter" or "return" you get... (0 Replies)
Discussion started by: rmoriarty
0 Replies
9. Shell Programming and Scripting
I have 5 hosts and each host as 3 java process .I have one machine which has ssh keys so it can login without any passwords etc to all the machines.
How can I find out say jstack or some command so it goes to each machine and run the command . For example machine 1 has 3 java process and they... (2 Replies)
Discussion started by: gubbu
2 Replies
10. Programming
suppose the user enters: ./Myfile blah1 blah2 blah3
I want to be able to read that in as: blah1blah2blah3
IN ONE VARIABLE
Obviously I can print it out in one line excluding the white space, but I'm having trouble combining argv, argv, ....., argv together!
This is what I tried, but I... (3 Replies)
Discussion started by: hansel13
3 Replies
XKIBITZ(1) General Commands Manual XKIBITZ(1)
NAME
xkibitz - allow multiple people to interact in an xterm
SYNOPSIS
xkibitz [ xkibitz-args ] [ program program-args... ]
INTRODUCTION
xkibitz allows users in separate xterms to share one shell (or any program that runs in an xterm). Uses include:
o A novice user can ask an expert user for help. Using xkibitz, the expert can see what the user is doing, and offer advice or
show how to do it right.
o By running xkibitz and then starting a full-screen editor, people may carry out a conversation, retaining the ability to scroll
backwards, save the entire conversation, or even edit it while in progress.
o People can team up on games, document editing, or other cooperative tasks where each person has strengths and weaknesses that
complement one another.
o If you want to have a large number of people do an on-line code walk-through, you can sit two in front of each workstation, and
then connect them all together while you everyone looks at code together in the editor.
USAGE
To start xkibitz, one user (the master) runs xkibitz with no arguments.
xkibitz starts a new shell (or another program, if given on the command line). The user can interact normally with the shell, or upon
entering an escape (described when xkibitz starts) can add users to the interaction.
To add users, enter "+ display" where display is the X display name. If there is no ":X.Y" in the display name, ":0.0" is assumed. The
master user must have permission to access each display. Each display is assigned a tag - a small integer which can be used to reference
the display.
To show the current tags and displays, enter "=".
To drop a display, enter "- tag" where tag is the display's tag according to the "=" command.
To return to the shared shell, enter "return". Then the keystrokes of all users become the input of the shell. Similarly, all users
receive the output from the shell.
To terminate xkibitz it suffices to terminate the shell itself. For example, if any user types ^D (and the shell accepts this to be EOF),
the shell terminates followed by xkibitz.
Normally, all characters are passed uninterpreted. However, in the escape dialogue the user talks directly to the xkibitz interpreter.
Any Expect(1) or Tcl(3) commands may also be given. Also, job control may be used while in the interpreter, to, for example, suspend or
restart xkibitz.
Various processes can produce various effects. For example, you can emulate a multi-way write(1) session with the command:
xkibitz sleep 1000000
ARGUMENTS
xkibitz understands a few special arguments which should appear before the program name (if given). Each argument should be separated by
whitespace. If the arguments themselves takes arguments, these should also be separated by whitespace.
-escape sets the escape character. The default escape character is ^].
-display adds a display much like the "+" command. Multiple -display flags can be given. For example, to start up xkibitz with three
additional displays:
xkibitz -display mercury -display fox -display dragon:1.0
CAVEATS
Due to limitations in both X and UNIX, resize propagation is weak.
When the master user resizes the xterm, all the other xterms are logically resized. Unfortunately, xkibitz cannot force the physical xterm
size to correspond with the logical xterm sizes.
The other users are free to resize their xterm but their sizes are not propagated. The master can check the logical sizes with the "="
command.
Deducing the window size is a non-portable operation. The code is known to work for recent versions of SunOS, AIX, Unicos, and HPUX. Send
back mods if you add support for anything else.
ENVIRONMENT
The environment variable SHELL is used to determine and start a shell, if no other program is given on the command line.
If the environment variable DISPLAY is defined, its value is used for the display name of the xkibitz master (the display with tag number
0). Otherwise this name remains empty.
Additional arguments may be passed to new xterms through the environment variable XKIBITZ_XTERM_ARGS. For example, to create xterms with a
scrollbar and a green pointer cursor:
XKIBITZ_XTERM_ARGS="-sb -ms green"
export XKIBITZ_XTERM_ARGS
(this is for the Bourne shell - use whatever syntax is appropriate for your favorite shell). Any option can be given that is valid for the
xterm command, with the exception of -display, -geometry and -S as those are set by xkibitz.
SEE ALSO
Tcl(3), libexpect(3) kibitz(1)
"Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Programs" by Don Libes, O'Reilly and Associates, January 1995.
"kibitz - Connecting Multiple Interactive Programs Together", by Don Libes, Software - Practice & Experience, John Wiley & Sons, West Sus-
sex, England, Vol. 23, No. 5, May, 1993.
AUTHOR
Don Libes, National Institute of Standards and Technology
06 October 1994 XKIBITZ(1)