AlexBausW: SSI - EXE ausführen und Parameter übergeben...

Beitrag lesen

Hallo,

[...]

Wenn ich den Parameter weglasse, wird die EXE-Datei korrekt aufgerufen. Leider kann ich den Parameter nicht weglassen, da sonst das Programm nicht wie gewünscht ausgeführt wird. Es "scheitert" also alles am Parameter, was mich eben dazu veranlasst hat, dieses Posting zu erstellen.

Abgesehen davon sehe ich in Deinem Fall keinen Unterschied gegenüber
   http://httpd.apache.org/docs/howto/ssi.html#executingcommands.

Nun ja, in der Doku ist nichts bzgl. des Aufrufes eines Programms mit Parametern beschrieben.

Aber der zweite Link den ich Dir gegeben habe erklärt, warum es _mit_ Paramtern in Deinem Fall nicht funktioniert (habe es beim ersten mal aber auch nicht so genau gelesen ;).

<cite href="http://httpd.apache.org/docs/mod/mod_include.html">
     cmd

The server will execute the given string using /bin/sh. The include variables are available to the command, in addition
          to the usual set of CGI variables.

The use of #include virtual is almost always prefered to using either #exec cgi or #exec cmd. The former
          (#include virtual) used the standard Apache sub-request mechanism to include files or scripts. It is much better
          tested and maintained.
     <strong>
          In addition, on some platforms, like Win32, and on unix when using suexec, you cannot pass arguments to a command
          in an exec directive, or otherwise include spaces in the command. Thus, while the following will work under a
          non-suexec configuration on unix, it will not produce the desired result under Win32, or when running suexec:
     </strong>
          <!--#exec cmd="perl /path/to/perlscript arg1 arg2" -->
</cite>

Gruß Alex