Re: Re: cleanup_for_exec() v/s spawn_proc_prog()

2010-05-03 Thread israel . leiva
rl 2.0. The 1.0 equivalents, I think, are described in the > sections "Starting a Long Running External Program" and "Starting a > Short Running External Program" on the page you're referring to. > Thanks for the clarification. Finally I decided to use: $r->push_handlers( PerlCleanupHandler => sub { $obj->method } ); where $obj->method() executes the (short) external programs after the request have been served. -- Israel Leiva

cleanup_for_exec() v/s spawn_proc_prog()

2010-05-01 Thread israel . leiva
) and spawn_proc_prog() . [1]: http://perl.apache.org/docs/1.0/guide/performance.html#Forking_and_Executing_Subprocesses_from_mod_perl [2]: http://perl.apache.org/docs/1.0/guide/performance.html#A_Complete_Fork_Example -- Israel Leiva

RE: Is this an acceptable way to multipurpose a sub?

2010-04-26 Thread israel . leiva
> I'm sure someone where will pipe in a better way, but you could pass via a > hash, something like > > ($result_code, $error) = submit_changes({ 'apache_request' = >$r, > 'user_name' => \...@user_names, > 'latest_news' => $latest_news_file, 'archived_news' =>$archived_news_file, > 'cgi_obj' =>