Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

capture screen

Status
Not open for further replies.

gudguy

MIS
Nov 8, 2002
93
US
friends,

i have just started a job on my unix box (sunos 5.8) which is in another building.

how do i capture the unix box display (screen) through telnet, on my windows machine? i just want to monitor the job that unix box.

thanks for your tip!
 
gudguy,

I'm not sure if this is exactly what you are looking for, but here it goes. Once you have done the telnet to the unix box you need to set up display back to your Windows box.

When you log in you are set up with a default shell. Find out which shell you are in by using the following command:

echo $SHELL (/bin/sh - bourne, /bin/ksh - korn, /bin/csh - c, etc...)

Once you have the shell use one of the following examples (Replace the IP address used below with the IP address for your Windows machine).

Bourne - DISPLAY=192.68.0.1:0 ; export DISPLAY (IP is the Windows box IP address)

Korn - export DISPLAY=192.68.0.1:0

C - setenv DISPLAY 192.68.0.1:0


Hope this helps.
Good Luck!
Have a Great Day!! :)
~Sol
Sys Admin
 
gudguy,

I'm not sure if this is exactly what you are looking for, but here it goes (This will only work if you are opening a GUI or executing a command that will open in a terminal (console) window). Once you have done the telnet to the unix box you need to set up display back to your Windows box.

To do this, find out which shell you are in by using the following command:

echo $SHELL (output will probably be one of the following, but may be one of a number of other shells, /bin/sh - bourne, /bin/ksh - korn, /bin/csh - c, etc...)

Once you have the shell use one of the following examples (Replace the IP address used below with the IP address for your Windows machine).

Bourne - DISPLAY=192.68.0.1:0 ; export DISPLAY (IP is the Windows box IP address)

Korn - export DISPLAY=192.68.0.1:0

C - setenv DISPLAY 192.68.0.1:0

Once this is done, you can verify that the display is set by typing the following:

echo $DISPLAY (output should look like this: 192.68.0.1:0)


Hope this helps.
Good Luck!
Have a Great Day!! :)
~Sol
Sys Admin
 
Thank you for your quick reply. Actually I'm new to Sun, so pl excuse me if I speak dumb technically.

All I wanted is to get the screen of my unix box and see what's on the screen without going to another building.

I guess mine is bourne shell, coz I got the result as /sbin/sh.

Then I typed:
# DISPLAY=my windows ip address. Then it went back to the prompt again. Then I typed:

# export DISPLAY

This time too it went back to prompt without doing anything.

But didn't get the screen of my remote unix box. May be I'm missing something else after giving 'export DISPLAY' command.
 
gudguy,

If you have access to AIM my screen name is SolSgt. It will be easier to discuss there. If not let me know and we can try something else... Have a Great Day!! :)
~Sol
Sys Admin
 
Dear Sol:

Thank you for going a mile further to help me. Unfortunately since I'm at work, I dont have AIM. But I do have Yahoo IM. My screen name is gudguy_us.

Thank you again!
 
I attempted to contact you, but you were offline.... 10:00pm EST
Have a Great Day!! :)
~Sol
Sys Admin
 
Is it a GUI/X Windows display you're trying to capture, or just a normal terminal session?

If it's a terminal session you can probably enable logging using your terminal emulator, or alternatively redirect the output of your job to a file and then send it to yourself later. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top