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.
Thanks,
Chuck

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:

#!/bin/sh
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/eventmonitor.sh $DISPLAY

Then eventmonitor.sh on the remote box looks like;

#!/bin/sh
PATH=/blah:/more/blah:/path/to
export PATH
DISPLAY=$1
export DISPLAY
exec /path/to/eventmonitor

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