07-08-2008
Quote:
Originally Posted by
Vi-Curious
Setup:
Two users, each likely on Windows PCs, using either putty or SecureCRT to connect to a remote Solaris server. The connection could be either telnet or ssh.
Wanted:
How can the output of one users xterm be directed to the other user so that you can easily allow someone to see what you are doing?
Back in early 2005, someone at work was helping me troubleshoot a problem and he somehow directed his output onto my xterm. All he asked for was my IP address. I don't know if the output was also being displayed for him or not. Around that time, I went overseas on a 2 year assignment. When I got back early last year, I went to the only two people I could think of that I might have been working with back in 2005 and asked them about this. Both said it wasn't them and they didn't know how to do it. I have played around with it a little but have not been able to make it work and I find that it would be pretty useful.
Has anyone here done this, or know how to do it?
I'm the product manager for SecureCRT and there's an undocumented feature in SecureCRT 6.0 and later that allows you to do this. Here are the steps:
- In SecureCRT, open the Session Options dialog for the dialog that you want to allow someone else to monitor.
- Go to the "Mapped Keys" category and click the "Map a Key" button. For the Function, select "SSH Function" and for the SSH Function, select "TOGGLE_MONITOR_SERVER".
- Connect to the session. When you want to let someone else monitor the session, press the mapped key you selected in step 2. The first time you do this, you will need to generate a public key. A dialog will be displayed that allows you to specify the information that will be needed by the person who will be monitoring the session.
- Give the other person the information from the dialog in step 3. When they connect, you will see a message in SecureCRT that they are connected. They will then be able to see everything in your SecureCRT session.
- To end the monitoring session, you can press the mapped key again to terminate the server monitor, have the other person log out, or disconnect your session in SecureCRT.
The session being monitored can use any protocol, but the session doing the monitoring must use SSH2. If you try it, I'd be interested in any feedback you have about this feature.
Maureen
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I go to a different terminal ctrl-alt f2
i want to be able to open up another xterm there.
How do i do it?
Specificly, I want to be able to log into another computer in term f2. I then want to open a gui term and then execute programs on one computer but have them display on mine?
I... (1 Reply)
Discussion started by: macdonto
1 Replies
2. Shell Programming and Scripting
Hi
I'm trying to display the output of my script in a friendly viewable format.
it's something like this..
i have this while loop... in which i get some records from a file where fields are delimitered with a pipe. so i'm extacting each field and replacing the pipe with a \t, tab !!..
cat... (7 Replies)
Discussion started by: rosh0623
7 Replies
3. Shell Programming and Scripting
Hi, I have a small question about the value cannot display correctly:
MSG=log
fruit=apple
print "No $fruit in the store" > "$MSG/fruit_message.txt"
output: No $fruit in the store
should be: No apple in the store
AND
$MSG/fruit_message.txt ----------> cannot find the... (5 Replies)
Discussion started by: happyv
5 Replies
4. UNIX for Dummies Questions & Answers
All,
I have a file ABC.TXT which has two records:
12345 19.93 34.94
12345 94.84 10.48
If do the following command and
grep '12345' ABC.TXT >> test1.txt
If I look at the output of test1.txt I appears as follows:
12345 19.93 34.94 12345 94.84 10.48
I... (5 Replies)
Discussion started by: kingofprussia
5 Replies
5. UNIX for Dummies Questions & Answers
I am using this command but when I launch it, the font that comes up on the remote machine is very small. Is there a way to enlarge the font using some switch?
xterm -display remotemachine:0.0 & (5 Replies)
Discussion started by: zapper222
5 Replies
6. UNIX for Dummies Questions & Answers
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
Discussion started by: satimis
7 Replies
7. UNIX for Dummies Questions & Answers
Hello everyboby,
can someone write me all options for Xterm option -name. For example, I know that @d give me server ip... but, how to write something like
${USER}@${HOST}: ${PWD}$
on title bar ?
I use a connection line like this
@(XTerm, method=stdappdb) -fn 6x13 -bg AliceBlue -fg blue... (2 Replies)
Discussion started by: gogol_bordello
2 Replies
8. Shell Programming and Scripting
Hi,
I have the following output of a shell script
k m == -77.2820 (Act=79.9)
i want to display only
k m (6 Replies)
Discussion started by: sreejithalokkan
6 Replies
9. Shell Programming and Scripting
Hi all,
I've been working on a bash script to help with backups that I have to do at work.
One of the lines in the script is supposed to launch an xterm, log into a specific server node and launch a tar backup to tape. This part works ok, but I've been trying to get stdout and stderr to... (2 Replies)
Discussion started by: Exitalterego
2 Replies
10. HP-UX
After install of the Sept. 2010 patch set on my hpux 11.23 system, my xterm when launched, dies immediately on the client with the xserver, with a core.xterm file in root of the hpux server. This had been working before the patch install.
I tried to find xterm patches from ITRC (yes the old... (1 Reply)
Discussion started by: mrmurdock
1 Replies
LEARN ABOUT HPUX
xgetdefault
XGetDefault() XGetDefault()
Name
XGetDefault - extract an option value from the resource database.
Synopsis
char *XGetDefault(display, program, option)
Display *display;
char *program;
char *option;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
program Specifies the program name to be looked for in the resource database. The program name is usually argv[0], the first argument on
the UNIX command line.
option Specifies the option name or keyword. Lines containing both the program name and the option name, separated only by a period or
asterisk, will be matched.
Returns
The resource value.
Description
XGetDefault() returns a character string containing the user's default value for the specified program name and option name. XGetDefault()
returns NULL if no key can be found that matches option and program. For a description of the matching rules, see XrmGetResource().
The strings returned by XGetDefault() are owned by Xlib and should not be modified or freed by the client.
Lines in the user's resource database look like this:
xterm.foreground: #c0c0ff
xterm.geometry: =81x28
xterm.saveLines: 256
xterm.font: 8x13
xterm.keyMapFile: /usr/black/.keymap
xterm.activeIcon: on
xmh.header.font 9x15
The portion on the left is known as a key; the portion on the right is the value. Uppercase or lowercase is important in keys. The con-
vention is to capitalize only the second and successive words in each option, if any.
Resource specifications are usually loaded into the XA_RESOURCE_MANAGER property on the root window at login. If no such property exists,
a resource file in the user's home directory is loaded. On a UNIX-based system, this file is $HOME/.Xdefaults. After loading these
defaults, XGetDefault() merges additional defaults specified by the XENVIRONMENT environment variable. If XENVIRONMENT is defined, it con-
tains a full path name for the additional resource file. If XENVIRONMENT is not defined, XGetDefault() looks for $HOME/.Xdefaults-name,
where name specifies the name of the machine on which the application is running. If length of ".Xdefaults-name" is greater than 255, then
$HOME/.Xdefaults-IP address is looked for instead, where IP address is the internet address of the host.
The first invocation of XGetDefault() reads and merges the various resource files into Xlib so that subsequent requests are fast. There-
fore, changes to the resource files from the program will not be felt until the next invocation of the application.
For more information, see Volume One, Chapter 13, Managing User Preferences.
See Also
XAutoRepeatOff(), XAutoRepeatOn(), XBell(), XChangeKeyboardControl(), XGetKeyboardControl(), XGetPointerControl().
Xlib - User Preferences XGetDefault()