UNIX / SunOS shell script action hangs when executing /usr/X/bin/xdpyinfo

I am executing an embedded shell script using an IEM action on SunOS. In one part of the script it calls “/usr/X/bin/xdpyinfo” to get information on the X server setup on the system. Whenever IEM gets to this part of the script it hangs indefinitely, leaving the action in a “Running” state.

When I run the shell script in the command line, there are no problems. What specifically about the IEM execution environment might cause this to hang? I understand that IEM operates without a “DISPLAY”, but would something like this cause such a hangup?