On Sat, 19 Jan 2002, Rich Bowen wrote:
> On Win32, the SSI directive 'exec cmd' is borked, permitting the
> execution of simple one-word commands like 'dir', but failing on
> commands containing spaces, such as 'perl /path/to/script arg1 arg2'
>
> After wrestling with this for nearly 2 hours, I asked on
> c.i.w.servers.www, and got a very rapid response from Bill Rowe, so
> apparently this was fairly well known, and I should have been aware of
> it. However, I wasn't, and wondered if it is appropriate to put this in
> the docs, until such time as there is a fix of some kind.
>
> I know that it is generally considered bad form to document bugs rather
> than fixing them, but the latter is not really an option to me, and I'd
> like to save someone else this same frustration.
>
> Are there any objections to this variety of documentation change?
This would consist of a patch like:
diff -B -b -u -r1.36 mod_include.html
--- mod_include.html 11 Nov 2001 03:24:01 -0000 1.36
+++ mod_include.html 20 Jan 2002 02:10:38 -0000
@@ -201,9 +201,21 @@
<dt>cmd</dt>
- <dd>The server will execute the given string using
+ <dd>
+
+ <p>The server will execute the given string using
<code>/bin/sh</code>. The include variables are available
- to the command.</dd>
+ to the command.</p>
+
+ <p>Note that, at this time, on Win32, and on unix when using
+ suexec, you cannot pass arguments to a command in an
+ <code>exec</code> 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:</p>
+
+ <code><!--#exec cmd="perl /path/to/perlscript arg1 arg2" --></code>
+ </dd>
</dl>
</dd>
--
Pilgrim, how you journey on the road you chose
To find out where the winds die and where the stories go
--Pilgrim (Enya - A Day Without Rain)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]