Justin Williams wrote:

>BTW, it was happier runnign the analog.exe file, rather than the 
>anlgform.pl file, which makes sense, as it is running on an NT box, 
>rather than on a Unix box.

NT is just as happy running a .pl file as a .exe file, and analog.pl 
doesn't care whether it's on NT or Unix.

The problem has more to do with the context of "working directory" in 
Windows - if x:\InetPub\wwwroot\logs\analog.pl calls 
y:\Analog\analog.exe, the "working directory" for analog.exe is 
x:\InetPub\wwwroot\logs\, and it looks for the cfg file and the .lng 
files in x:\InetPub\wwwroot\logs\, not in y:\Analog\analog.exe. 

You can avoid this confusion by ignoring the security issues entirely, 
and making y:\Analog\analog.exe available as a URL, but you'd be better 
off modifying the perl script to specify the correct locations for the 
ancillary files.

Aengus


>>On the opposite side, when I try to run Analog using anlgform.htm, 
>>through the web, where the directory is set up to allow executables, I 
>>get the following errors:
>>CGI Error
>>The specified CGI application misbehaved by not returning a complete 
>>set of HTTP headers. The headers it did return are:
>>
>>D:\Inetpub\wwwroot\Fortt\analog\analog.exe: Warning F: Failed to 
>>  open configuration file analog.cfg: ignoring it
>>  (For help on all errors and warnings, see docs/errors.html)
>
>Analog.exe will look for analog.cfg in the directory that it was called 
>from - that's the directory your .pl file is in, not the directory your 
>.exe file is in. So you must explicitly specify 
>cg=D:\Inetpub\wwwroot\Fortt\analog\analog.cfg
>in your form, and
>LANGFILE D:\Inetpub\wwwroot\Fortt\analog\uk.lng 
>in the Analog.cfg
>
>(This is non-intuitive, but it makes a certain kind of sense once you 
>understand what's happening).
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to