You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Marc Slemko <ma...@znep.com> on 1998/08/04 19:50:01 UTC

Re: mod_include/2755: #exec cmd doesn't work (fwd)

The following reply was made to PR mod_include/2755; it has been noted by GNATS.

From: Marc Slemko <ma...@znep.com>
To: apbugs@apache.org
Cc:  Subject: Re: mod_include/2755: #exec cmd doesn't work (fwd)
Date: Tue, 4 Aug 1998 10:42:33 -0700 (PDT)

 ---------- Forwarded message ----------
 Date: Tue, 04 Aug 1998 17:36:50 +0000
 From: Federico Giannici <gi...@neomedia.it>
 To: Marc Slemko <ma...@znep.com>
 Subject: Re: mod_include/2755: #exec cmd doesn't work
 
 Marc Slemko wrote:
 > 
 > On Sun, 2 Aug 1998, Federico Giannici wrote:
 > 
 > > marc@hyperreal.org wrote:
 > > >
 > > > Synopsis: #exec cmd doesn't work
 > > >
 > > > State-Changed-From-To: open-feedback
 > > > State-Changed-By: marc
 > > > State-Changed-When: Sat Aug  1 11:07:59 PDT 1998
 > > > State-Changed-Why:
 > > > It works just fine for me.
 > > >
 > > > Do other SSI directives work in the same page?
 > >
 > > Yes, if I change the "cmd" with a "cgi" (changing path to url) it
 > > works...
 > >
 > > The problem is that i decided to use cmd because I have to pass some
 > > arguments to the script.
 > > I tried to pass the arguments to the cgi in the normal URL form (with a
 > > "?"), but it didn't worked. Is is normal? Is there another way?
 > 
 > See the docs; use "include virtual" if you want to execute something with
 > a query string or path info.
 
 Oops...
 OK, now I changed all my pages, so the problem isn't any longer very
 important to me...
 
 > >
 > > > If you look at the source of the page generated, does it
 > > > still contain the SSI directives unparsed?
 > >
 > > No, and it doesn't contain any error or any output, completly nothing!
 > 
 > Are you sure you are viewing the source and not the parsed HTML?
 
 Hu???
 What is the difference?
 I used the "View/Page Source" menu of Netscape Communicator...
 
 > > And no error is logged!
 > >
 > > > Give an example of an exec cmd you are trying to use.
 > >
 > > I tried with many different commands, even a simple shell script with
 > > only a "echo hello". I tried to put it in many different directory, also
 > > in current. I chmoded them 777...
 > > No result at all!!!
 > 
 > Again, please give an example.  An exact example of what you are putting
 > in your file that you think should be parsed.
 
 I used lines like the following:
 
      <!--#exec cmd="/wwwdocs/cgi-bin/ads-insert it hr"-->
 
 I tried to move the command in many different directory, also the
 current one.
 The command works used in a shell.
 I also tried to change the command with a simple shell script with only
 a "echo hello" line.
 I tied also to set 777 permissions.
 
 And finaly keep in mind that these commands worked perfectly until I
 moved from apache 1.2.x to 1.3.x.
 
 Bye,
 ___________________________________________________
     __
    |-                      giannici@neomedia.it
    |ederico Giannici      http://www.neomedia.it
 
         Amministratore unico - NEOMEDIA sas
 ___________________________________________________