httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: output filter problems
Date Sat, 17 Aug 2002 16:11:02 GMT
Werner Schalk wrote:

> I add the following lines to my httpd.conf:
> ExtFilterDefine awk_line_numbering mode=output outtype=text/html
> cmd="/bin/awk '{print NR": " $N}'"

> Unexpected parameter: `: " $N}'"'
> 
> How can I solve this?
> Using ' instead of " is not possible
> with awk and typing a \ before the "
> did not help either...

1. I'm fairly sure that escaping using back-slash should work.  Try this 
again:
ExtFilterDefine awk_line_numbering mode=output outtype=text/html 
cmd="/bin/awk '{print NR\": \" $N}'"

If that doesn't work, you might want to report it as a bug.

2. Enclose your awk command in a small shell script and call the shell 
script.

Joshua.



---------------------------------------------------------------------
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


Mime
View raw message