views:

72

answers:

0

In my shell script that I run as a cgi application using fast cgi, when I echo as below, the log lines in apache error log appears broken up ( as shown below ). Anu idea why this happens?

echo "a few words - some other words" 1>&2

In the log file

[Tue Apr 27 12:27:54 2010] [warn] mod_fcgid: stderr: a few words -
[Tue Apr 27 12:27:54 2010] [warn] mod_fcgid: stderr: some other words

I am running apache2 + mod_fcgid. When I tried with mod_fastcgi, it was looking OK.