Passing DISPLAY variable through rsh

I am trying to add a menu item (Openwin menu) to do an rsh and execute a script which open a graphical tool. The problem I am having is that I cannot seem to pass the display variable. The OS for both boxes is Solaris 2.6.

Many X applications will take a "-display" argument. Something like:

xv -display sunbox:0

Another alternative is to use ssh, as it handles the display variable automatically.

Unfortunately the application is a vendor provided program which does not support a "-display" flag. Their answer is to set the display from the prompt, but most of our users aren't UNIX literate and I would prefer not to drop them on the shell.

Then how about:

xhost +otherhost
rsh otherhost "export DISPLAY=host:0 ; /path/to/app"

Thank you for your help. I finally got it to work. What I did was exec this on the local box from the Openwin menu;

rsh hostname /path/to/script/ $DISPLAY

Then on the remote box looks like;

export PATH
export DISPLAY
exec /path/to/eventmonitor

I can't beleive it took me all day to figure this out!