You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-cvs@perl.apache.org by st...@apache.org on 2004/07/17 00:51:37 UTC

cvs commit: modperl-docs/src/docs/2.0/api/Apache SubProcess.pod

stas        2004/07/16 15:51:37

  Modified:    src/docs/2.0/api/Apache SubProcess.pod
  Log:
  fix the syntax
  
  Revision  Changes    Path
  1.5       +3 -4      modperl-docs/src/docs/2.0/api/Apache/SubProcess.pod
  
  Index: SubProcess.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/SubProcess.pod,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -u -r1.4 -r1.5
  --- SubProcess.pod	16 Jul 2004 22:45:17 -0000	1.4
  +++ SubProcess.pod	16 Jul 2004 22:51:37 -0000	1.5
  @@ -16,19 +16,18 @@
     # pass @ARGV / read from the process
     $command = "/tmp/argv.pl";
     @argv = qw(foo bar);
  -  $out_fh = Apache::SubProcess::spawn_proc_prog($r, $command, \@argv);
  +  $out_fh = $r->spawn_proc_prog($command, \@argv);
     $output = read_data($out_fh);
     
     # pass environment / read from the process
     $command = "/tmp/env.pl";
     $r->subprocess_env->set(foo => "bar");
  -  $out_fh = Apache::SubProcess::spawn_proc_prog($r, $command);
  +  $out_fh = $r->spawn_proc_prog($command);
     $output = read_data($out_fh);
     
     # write to/read from the process
     $command = "/tmp/in_out_err.pl";
  -  ($in_fh, $out_fh, $err_fh) = 
  -      Apache::SubProcess::spawn_proc_prog($r, $command);
  +  ($in_fh, $out_fh, $err_fh) = $r->spawn_proc_prog($command);
     print $in_fh "hello\n";
     $output = read_data($out_fh);
     $error  = read_data($err_fh);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org