HP3000-L Archives

April 2000, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ron Horner <[log in to unmask]>
Reply To:
Date:
Thu, 13 Apr 2000 07:08:18 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (62 lines)
Some if not all programs that run within MPEX don't completely end.  MPEX
creates son processes for each program that you run.  When you end the
program, the son process becomes inactive. You can see each son process by
doing a SHOWTREE within MPEX.  This function saves time and resources if
you have to run a program more than once.  The problem is that if you have
to perform commands like CHLOGON, those son processes get in the way.

The fix is to use the ;KILL option in the MPEX RUN command.  So that you
don't have to remember this every time you run a program inside MPEX,
 perform a "SETVAR VESOFTDEFAULTRUN ';KILL'".  Use this setvar whenever
you're running a lot of programs in MPEX.

I do have another suggestion.  Since you found the insidempex jcw, rather
than creating an UDC, create a command file.  This way you can perform
logic like:

Setjcw insidempex 0
If insidempex = 0
   Run main.pub.vesoft,mpex;info="yourcmd"
   Return
Endif
{rest of the command file}

Hope this helps!!!

Ron Horner
Consulting Computer Specialist
http://horner.horner.home.mindspring.com


-----Original Message-----
From:   Gates, Scott [SMTP:[log in to unmask]]
Sent:   Wednesday, April 12, 2000 11:13 AM
To:     [log in to unmask]
Subject:        MPEX question  -- DETECTING SON PROCESSES.

                This problem keeps evolving as answers to one question come
in and a new hurdle pops up.

                I am trying to write a UDC that will work the SAME whether
the user is in MPE or MPEX.

                I cleared the hurdle of detecting whether MPEX is running
with the JCW INSIDEMPEX which returns a 1 if MPEX is running.
                I can now use an IF to branch around MPEX code to MPE.
                It now works fine in either MPE or MPEX

                UNLESS: There is QEDIT son process. There is a QEDIT script
in the UDC and it hangs when the son process is running.

                Can I automagically detect that son process and Kill it
from
the UDC?


                ************************************************
                * Scott Gates-ext 7994  | There is no problem  *
                * UPMC Health Plan      | in the world that    *
                * [log in to unmask]  | cannot be made worse *
                * 412-454-7994          | overreacting to it.  *
                ************************************************

ATOM RSS1 RSS2