David and Mattijs
thanks for your help. I've got it up and running. On my win2k laptop the
error disappeared as soon as I've installed apache as a service with
cygrunserv rather than invoking httpd from the shell and on the Sun I
had no problem at all. But thanks!
Now I can feed DX over the Web which is really practical.
Matthias
David Thompson wrote:
setenv DXHOST unix
This will tell dx to ignore the gethostbyname call and just use the
localhost.
David
In src/exec/dpexec/dxmain.c (line 1283) it is doing
gethostname(_dxd_exHostName, MAXHOSTNAMELEN);
if ( ExHostToFQDN(_dxd_exHostName, _dxd_exHostName ) == ERROR )
the ExHostToFQDN does a 'gethostbyname' which fails.
Seems the gethostname does not return a valid hostname (which has
been set by sethostname). I don't think it uses the 'HOSTNAME'
environment variable at all.
Could it be that Apache is passing on a stripped 'environment'?
Can you explicitly provide a host on the command line when you invoke
Dx?
Mattijs