The problem is the erlang module doesn't seem to be working when
called from the cgi script.
For testing, I put prints to stdout as well as file at the start itself.
But both are not happening.
I can't understand the reason for such a behaviour.

Thanks
Jayakrishnan

On Sun, Jun 1, 2008 at 4:51 PM, Nick Kew <[EMAIL PROTECTED]> wrote:
> On Sun, 1 Jun 2008 11:49:16 +0100
> Nick Kew <[EMAIL PROTECTED]> wrote:
>
>> On Sun, 1 Jun 2008 13:52:19 +0530
>> "Jayakrishnan M" <[EMAIL PROTECTED]> 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
>
> Come to think of it, that still generates output in a subshell.
> A better test may be to save your program's output to a tempfile
> and then cat that back to the client.
>
> --
> 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: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to