Computing.Net > Forums > Unix > How to display a screen or window

How to display a screen or window

Reply to Message Icon

Original Message
Name: Sebastien
Date: September 24, 2003 at 08:12:50 Pacific
Subject: How to display a screen or window
OS: Unix
CPU/Ram: Sparc 20, 128Mb
Comment:

Hi,
I'm looking for a command to display a screen or window from a Unix station to a PC (with reflection).
I think there is something with setenv display or export display but I don't know how to use it.
Thanks.



Report Offensive Message For Removal


Response Number 1
Name: Jimbo
Date: September 24, 2003 at 17:36:37 Pacific
Subject: How to display a screen or window
Reply: (edit)

here is a script i use that may help you:

#!/bin/ksh
# xsession.sh
export DISPLAY=$TMPDISPLAY:0.0

# Variables passed to xterm
H=`uname -n | cut -c 5-12` # Set Hostname for Title bar and minimized icon
X=/usr/openwin/bin/xterm # Path to xterm program
BG=black # Background color
FG=white # Foreground color
GEO=95x45+140-40 # Set Terminal size and location on screen
IP=x.x.x.x:0.0 # IP address where session is started

# NOTES:
# -sb sets a scroll bar on the left side of the window. Press the middle button or both
# the left and right mouse buttons together to scroll.

nohup $X -g $GEO -sb -T $H -n $H -fg $FG -bg $BG -d $IP &

exit


Just change IP to the ip address of the system running reflections.

-jim


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: How to display a screen or window

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge