Subject: | |
From: | |
Reply To: | |
Date: | Wed, 9 Aug 2000 21:57:33 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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
>
|
|
|