[ .. ]
First try: MYIP=`hostname -i` rexec <host> -l <username> "setenv DISPLAY $MYIP:0; /opt/SAS82/sas"
but hostname -i does not work on cygwin. But maybe the name of the host is sufficient
MYIP=`hostname` rexec <host> -l <username> "setenv DISPLAY $MYIP:0; /opt/SAS82/sas"
But ipconfig does ...
$ ipconfig | grep "IP Address" | awk '{print $15}'
will get the IP address, but no idea if this would work for older Windoze such as W95 (yes some people still use it :))
Or even better, Use ssh:
DISPLAY=localhost:0 ssh -X <host> -l <username> "/opt/SAS82/sas"
ssh will take care of setting the remote DISPLAY and all transferred data is sent via the ssh tunnel.
Great! This works fine, but we still get the ugly ssh-style password prompt - just a thought, but is there anything available under cygwin to front end this with a username/password pop-up window? That'd be ideal :)
Thanks again for your help, Alexander
Scotty
