This script allows to run program on remote host (via rsh) and make it to connect to local display. It takes care of transferring proper X authirization token.
When invoked as foreign_xapp it starts given command without opening xterm window, assuming that specified command is an X application
See manual page for more information.