You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrew Koebrick <an...@mnplan.state.mn.us> on 2003/01/14 23:11:30 UTC

[users@httpd] ExtFilterDefine problem

Howdy,

I am trying to set up an output filter in the RedHat 8.0 distribution
of Apache2 running with mod_ext_filter 1.2.

Ideally it should tack in a virtual directive after the header. 
Something akin to (but with the full syntax for SSI):

ExtFilterDefine header mode=output intype=text/html cmd="/bin/sed
s/<\/head>/<\/head>include virtual/g"

However, the whitespace in the cmd between "include" and "virtual"
causes sed to give the error:

/bin/sed: -e expression #1, char 28: Unterminated `s' command

Everything works fine if I remove the space.

I have tried every form of escape I can think of (i.e. nesting the
command in single quotes between the doubles; backslash before the
space...) but nothing seems to work.  Any fix?  

Many thanks,



Andrew Koebrick
Web Coordinator/Librarian
MN-Planning (Office of Strategic and Long Range Planning)
658 Cedar St., Suite 300
St. Paul, MN 55155

651-296-4156 phone
651-296-3698 fax

www.mnplan.state.mn.us


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org