MPE::Process - Perl extension for MPE Process Handling


MPE-Process documentation  | view source Contained in the MPE-Process distribution.

Index


NAME

Top

MPE::Process - Perl extension for MPE Process Handling

SYNOPSIS

Top

  use MPE::Process;

  MPE::Process->new("CI.PUB.SYS", 
                            info => 'echo hi',
			    parm => 3, 
			    loadflag => 1,
			    activate=>2)
     or die "Createprocess failed: $MPE::Process::$CreateStatus\n";
  # Only for example purposes: there are easier ways to run CI commands!




  my $proc = MPE::Process->new("QEDIT.PUB.ROBELLE", stdin => "QPROGIN")
     or die "Createprocess failed: $MPE::Process::$CreateStatus\n";
  $proc->activate(2);
  $proc->kill;







DESCRIPTION

Top

  MPE::Process->new(programfile,   options ...)

  Calls the MPE/iX CREATEPROCESS intrinsic.

  If it fails, it returns undef and stores the status returned
  by CREATEPROCESS in $MPE::Process::CreateStatus

  See the following manuals for details:
    MPE/iX Intrinsics Reference Manual 
    Process Management Programmer's Guide
  Both available at: http://docs.hp.com/mpeix/all

  Options are specified as name value pairs.  String values will
  be changed to have the correct terminating character.

  String options
      entry    =>    "BASICENTRY"
      stdin    =>    "*INFILE"
      stdlist  =>    "*OUTFILE"
      info     =>    "info string"
      stderr   =>    "*ERRFILE"
      xl       =>    "XL.PUB,ST2XL.PUB.ROBELLE"
      unsat    =>    "whatever"

  These options are converted to a numeric value
      pri      =>    "DS"
      lib      =>    "G"
  (The 'lib' parameter is combined (bitwise-or) with 'loadflag')

  These options are passed through numerically
      parm     =>    2
      loadflag =>    3
      activate =>    0
      nmstack  =>    125000
      nmheap   =>    325000

  $proc->activate(0)
  $proc->activate(1)
  $proc->activate(2)

  $proc->activate      same as $proc->activate(0)

  $proc->kill
    'kill' is called automatically when the object is destroyed, so
    you usually don't need to call it.







EXPORT

None by default.

AUTHOR

Top

Ken Hirsch <kenhirsch@myself.com>

SEE ALSO

Top

perl(1) MPE::Spoonfeed


MPE-Process documentation  | view source Contained in the MPE-Process distribution.