You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Frank J. Faubert, Jr." <fr...@sane.com> on 1997/11/28 16:10:39 UTC

Re: No such file or directory: couldn't spawn child process: ..

I'm not positive about this, but you may have to use the ShellExecute API
call.  I know that if you want to make Windows start up the default web
browser (which is a Shell association), you need to use ShellExecute.

-Frank

-----Original Message-----
From: Martin Kraemer <Ma...@mch.sni.de>
To: new-httpd@apache.org <ne...@apache.org>
Date: Friday, November 28, 1997 10:07 AM
Subject: No such file or directory: couldn't spawn child process: ..


>When (under Win'95) trying to start CGI programs other than .exe, there
>seems to be a problem in the spawn() calls. Apparently, an association
>of a .tcl suffix which works fine when started from a DOS window does
>NOT work when started out of a ScriptAlias'ed /cgi-bin/ directory. The
>error log contains
>
>  [error] (2)No such file or directory: couldn't spawn child process:
c:/programme/apache/cgi-bin/dirxsurf.tcl
>
>I see two problems:
>a) the errno seems to report the wrong error. Probably some Windoze
>   function must be called to retrieve the real failure reason.
>
>b) the associated .tcl "Shell" program interpreter is not called
>   automatically. Possibly this means that we have to extract it from the
>   registry and try again if the first spawn() failed.
>
>I neither know nor love the windoze API and structure, so bear with me
>when what I propose is pure nonsense.
>
>    Martin
>--
>| S I E M E N S |  <Ma...@mch.sni.de>  |      Siemens Nixdorf
>| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
>| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
>~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request
>