Re: cgi script fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 1 Jun 2008 11:49:16 +0100
Nick Kew <nick@xxxxxxxxxxxx> wrote:

> On Sun, 1 Jun 2008 13:52:19 +0530
> "Jayakrishnan M" <jay.krishnanm@xxxxxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux