httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] cgi script fails
Date Sun, 01 Jun 2008 10:49:16 GMT
On Sun, 1 Jun 2008 13:52:19 +0530
"Jayakrishnan M" <jay.krishnanm@gmail.com> wrote:

> Hi,
> 
> I am using a shell script as a cgi script. I am trying to call an
> erlang beam file from the shell script for some processing.
> The problem is that the erlang code is not getting executed.
> The lines in the shell script which are above and below the call to
> erlang binary are working.

Are you sure it's not running but just failing to send the
output you expect?

What happens if you run within your script
erlang-prog | while read output
do
  echo "$output"
done

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

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