Display output of one xterm on another


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Display output of one xterm on another
# 1  
Old 07-04-2008
Display output of one xterm on another

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?
# 2  
Old 07-04-2008
Maybe he sent you an xterm (assigned your IP to the DISPLAY variable) and used the -e option to start a program in that xterm window?
# 3  
Old 07-04-2008
I've tried sending an xterm but no luck getting output into it.

I don't remember if he sent me an xterm or somehow attached to the existing xterm but it seems like he did send me an xterm. The session involved TimesTen database and sql queries to check the data. I want to say I was able to see the commands as he typed them as well as the output. But it's been too long, you know? Surely he had to also be able to see what output was being produced since he was walking me through it.
# 4  
Old 07-04-2008
one way (most probably not the best) that comes to my mind would be (using ksh)
Code:
export DISPLAY=your.ip
touch /path/to/file
xterm -e tail -f /path/to/file &
tail -f /path/to/file

That session sends you the xterm and shows what the other one sees.
Then have another session doing the input part, redirecting the output:
Code:
ksh 1>>/path/to/file
your/queries/here

# 5  
Old 07-04-2008
possibly was using kibitz:

Code:
http://expect.nist.gov/example/kibitz.man.html

# 6  
Old 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:
  1. In SecureCRT, open the Session Options dialog for the dialog that you want to allow someone else to monitor.
  2. 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".
  3. 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.
  4. 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.
  5. 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
# 7  
Old 07-08-2008
If I want to see what a user is doing I just tell them to script -f and then I tail -f typescript. It's simple enough for users to understand.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Xterm display immediatly dies in hpux 11.23

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

2. Shell Programming and Scripting

Ambiguous output redirect in xterm

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

3. Shell Programming and Scripting

Display the output

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

4. UNIX for Dummies Questions & Answers

xterm display options

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

5. UNIX for Dummies Questions & Answers

Command display output on console and simultaneously save the command and its output

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

6. UNIX for Dummies Questions & Answers

xterm -display

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

7. UNIX for Dummies Questions & Answers

Display multiple output lines

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

8. Shell Programming and Scripting

display and output...question

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

9. Shell Programming and Scripting

output display alignment !!

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

10. UNIX for Dummies Questions & Answers

xterm and display

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
Login or Register to Ask a Question