At 9:42 AM -0700 8/9/00, [log in to unmask] wrote:
>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.
I'm shooting from the hip here...
I believe your return value is always true because the call to showjob is
successful, whether or not your particular job is found. Couldn't you do
$callci showjob job=@j | grep AA,BB.CC
In this case, the return value should be the result of the grep, not the
showjob.
Barry Lake [log in to unmask]
Allegro Consultants, Inc. www.allegro.com
(408)252-2330