executing a background script from embedded perl
Igor Sysoev
is at rambler-co.ru
Thu Sep 11 13:52:03 MSD 2008
On Thu, Sep 11, 2008 at 12:47:39AM -0700, mike wrote:
> wait, perl module?
Yes, perl module:
http://wiki.codemongers.com/NginxEmbeddedPerlModule
> does that mean i can run perl-based .cgi and .pl scripts directly from
> nginx? i didn't think this was supported?
This is possible, but not recommended.
> On Thu, Sep 11, 2008 at 12:40 AM, Igor Sysoev <is at rambler-co.ru> wrote:
> > On Thu, Sep 11, 2008 at 05:05:26PM +0930, Kingsley Foreman wrote:
> >
> >> Hi guys just wondering if you could run
> >> exec("sleep 200 &") in an embedded perl script and let nginx keep doing its
> >> thing.
> >>
> >> Obviously sleep is just an example however i don't appear to be able to run
> >> a program in the background.
> >> the nginx process waits until the backgrounded script completes before
> >> continuing.
> >
> > ngx_http_perl_module waits perl only, so in this case the perl waits exec().
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list