perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-docs/src/docs/2.0/api/Apache SubProcess.pod
Date Fri, 16 Jul 2004 22:51:37 GMT
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


Mime
View raw message