Thanx Tad,
Both of those sound pretty good especially JINFO (almost exactly what I was
looking for) however how am I going to get the return status that I am
looking for from inside of the posix shell? Remember that when I execute
the "callci commandnamehere" that I get the return status of the callci, not
the command name. So far the best idea that I have seen has been the piping
to grep. That gave me exactly what I was looking for. But I would be very
interested in learning of a way to make it work the way you suggested. That
way I could check the status of all my MPE/iX commands from inside of the
posix shell.
BTW.... I realize that is sort of a cheezy way of doing it. If I was really
talented then I would just write the whole thing as a Unix script, but I
like MPE/iX scripting too much and I'd like to be able to solve my problems
with as little Unix as possible.
___
Tony Newton
> -----Original Message-----
> From: Tad Bochan [SMTP:[log in to unmask]]
> Sent: Wednesday, August 09, 2000 12:58 PM
> To: [log in to unmask]
> Subject: Re: [HP3000-L] How do I test in posix for a running MPE/iX
> job.
>
> Another way you could test for a running job if you are on an MPE release
> <
> 6.5
> is to use the PAUSE command, if you dont mind a 1 second delay sometimes.
> eg.
> errclear
> pause 1;job=!jobid;notexist
>
> This will pause for up to 1 second if the target job is not running, and
> will
> return hpcierr not = zero, otherwise it will return immediately with
> hpcierr=zero.
>
> Conversely, you can use pause 1;job=!jobid;exist
>
> Mpe 6.5 has a function which will explicitly return the info you want,
> but I dont have the details to hand (JINFO or something like that)
> Regards,
> Tad.
>
> ----- Original Message -----
> From: Newton, Tony <[log in to unmask]>
> To: <[log in to unmask]>
> Sent: 09 August 2000 19:15
> Subject: Re: [HP3000-L] How do I test in posix for a running MPE/iX job.
>
>
> > Hello all,
> >
> > Thanks for such a quick response. I knew why I was "failing" the test
> after
> > the callci showjob job=aa,bb.cc, but I wasn't real sure where to go from
> > there. It makes perfect sense now that you bring that to my attention.
> I
> > guess I just need to start spending more time in the posix shell.
> Thanks
> > again.
> >
> > Tony "When in doubt....Pipe it" Newton
> >
> > > -----Original Message-----
> > > From: Ronald R Horner [SMTP:[log in to unmask]]
> > > Sent: Wednesday, August 09, 2000 9:46 AM
> > > To: [log in to unmask]
> > > Subject: Re: [HP3000-L] How do I test in posix for a running
> MPE/iX
> > > job.
> > >
> > > You have to grep/egrep the showjob results to find what you are
> looking
> > > for.
> > >
> > > "Newton, Tony" wrote:
> > >
> > > > Hello Posix Gurus,
> > > >
> > > > Does anyone know how to test inside the posix shell to see if a
> MPE/iX
> > > job
> > > > is running? I've tried testing CALLCI SHOWJOB JOB=aa,bb.cc but it
> > > returns
> > > > true whether or not it finds the job that I'm seeking and the
> command
> PS
> > > > doesn't have any options to show jobs. I could write my own shell
> > > function
> > > > to do this but I'd rather not reinvent the wheel.
> > > > Any help would be greatly appreciated.
> > > >
> > > > ____
> > > > Tony Newton | [log in to unmask]
> > > > HP Systems Admin | (503) 574-5831
> > > > Providence Health Plan | www.providence.org
> > >
> > > --
> > > Ron Horner
> > > HP3000 Systems Admin
> > > JC Penney Co., Inc.
> > > (414) 259-2274
> >
|