| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
Starting xterm remotely
|
Original Message
|
Name: App
Date: June 12, 2002 at 14:38:44 Pacific
Subject: Starting xterm remotely
|
Comment: Hello people. I have 2 machines (Unix) A and B. I'm on machine A. I want to start one graphic app on my machine B and I want it being displayed on B. I'm trying, for example ssh -1 machineB xterm netscape But it tries to open on machine A, obviously returning an error. Someone have some clue about how I can do it? Thanks
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: PaulS
Date: June 12, 2002 at 17:29:33 Pacific
|
Reply: (edit)I don't know if this will work with SSH, but give it a try: + rlogin (slogin) from A to B. + on B, export your DISPLAY variable: # DISPLAY=A:0 # export DISPLAY + run your application # ./myapplication If netscape is your app, it seems a bit strange to do this, but ....
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Sean Miller
Date: June 13, 2002 at 02:58:26 Pacific
|
Reply: (edit)Write a shell script on machine B to say something like... #!/bin/ksh export DISPLAY=999.999.999.999:0.0 nohup netscape & >/dev/null 2>&1 ...then use the "remsh" command to remotely fire the script. You will have to set the .rhosts file on machine B to accept remote shell calls from machien A. Sean
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: modemer
Date: June 13, 2002 at 07:33:05 Pacific
|
Reply: (edit)Paul's solution would be perfect if you consider the following as well: 1. all of first, on B, start x window, then run : xhost +A in a shell window. 2. then do what Paul suggested.
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Unix Forum Home