cgi-script shell script wrapping question
ik
idokan at gmail.com
Mon Dec 27 20:08:42 IST 2010
2010/12/27 shimi <linux-il at shimi.net>
>
>
> 2010/12/27 Dov Grobgeld <dov.grobgeld at gmail.com>
>
>> I'm trying to write a cgi wrapper for a long running command. The command
>> takes about 10minutes to execute and when running it from the command line
>> it continously outputs text to stdout. A simplistic cgi-bin wrapper that
>> tries to execute the script and then writes that it is done fails with the
>> following message:
>>
>>
>> Timeout waiting for output from CGI script ...
>>
>> What I wonder if there is any easy way to have continously update the web
>> page with stdout of the script.
>>
>> One way, I guess would be to run the script in a separate thread and just
>> do HTML reload on a static page which I would regenaret with the stdout
>> generated so far.
>>
>> Is there any other simple solution?
>>
>>
> You could increase the timeout to be > running time of the script ...
>
Do not forget that you also have timeout of the web browser that you can not
control (you can not control the users themselves).
>
> -- Shimi
>
Ido
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20101227/6159a4f6/attachment.html>
More information about the Linux-il
mailing list