in reply to Re: Need help with Apache2::Subprocess undefined value error when using spawn_proc_prog
in thread Need help with Apache2::Subprocess undefined value error when using spawn_proc_prog

No, this should work. The Apache::RequestRec object is supposed to be passed to the sub generated by ModPerl::Registry.
  • Comment on Re^2: Need help with Apache2::Subprocess undefined value error when using spawn_proc_prog

Replies are listed 'Best First'.
Re^3: Need help with Apache2::Subprocess undefined value error when using spawn_proc_prog
by aels (Initiate) on Aug 20, 2007 at 05:11 UTC

    I reinstalled with Apache2.2.4 and mod_perl 2.0.3 and I am getting the code to work now. I will post an update later tonight with a working example.

      This is what I used after re-installing apache and mod_perl.
      ## I included the following ## use Apache2::RequestRec (); use Apache2::RequestIO (); use Apache2::RequestUtil (); use Apache2::SubProcess (); ## ## I used this option as well .. .. my $r = shift; $r->no_cache(1); .. .. ## And then the following my $par_value="test"; my @argv; push (@argv, $par_value); my $cmdfile = "/tmp/test.pl"; $r->spawn_proc_prog($cmdfile, \@argv); .. ..
      The above is now working fine.