I want to run a background X-windows process on a remote machine in a secure
environment and have that process display back to a third machine.
rsh is enabled, so I'm using that.
all X servers allow remote connections as well.
Locally, I issue the following command (I am using csh on all machines):
host1%> rsh {host2} 'setenv DISPLAY {host3}; {command line} &'
For some simple x-applications (xterm, xclock, etc) this works fine and the
rsh returns, but for the application I need, the application launches OK,
but the rsh command does not complete until the remote application is
terminated.
I have tried the following vaiations, with identical results:
host1%> rsh {host2} 'setenv DISPLAY {host3}; {command line} &'
host1%> rsh -n {host2} 'setenv DISPLAY {host3}; {command line} &'
host1%> rsh {host2} '/bin/csh -c "setenv DISPLAY {host3}; {command line}
&"'
host1%> rsh {host2} '/bin/csh -c "setenv DISPLAY {host3}; exec {command
line}"'
host1%> rsh {host2} '/bin/csh -c "setenv DISPLAY {host3}; exec {command
line}" &'
The only thing that gets me close to what I want is to put the rsh in the
backtground, but that leaves an unecessary rsh process lying around on my
local box. Not a problem right now, but it will be when I implement this
script across thousands of boxes.
Any ideas anyone?