HP3000-L Archives

August 1999, 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:
Tad Bochan <[log in to unmask]>
Reply To:
Tad Bochan <[log in to unmask]>
Date:
Mon, 9 Aug 1999 21:44:49 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (46 lines)
Hi Jeff,
A better way to synchronize two jobs may be to
use MPEX to lock some file while doing the
real processing.
Eg., (syntax here is a bit wobbly since I am doing this without the manual)
!Job ..........
!Main.pub.vesoft
  setvar lockfile VEFOPEN("anyfile;lock;shr")
  setvar locked VEFLOCK(lockfile,true)

   do the processing ....

   exit
!eod
!eoj

"anyfile" can be any thing suitable, but an empty file
might be simplest.

Regards,
Tad.
-----Original Message-----
From: Jeff Keepers <[log in to unmask]>
To: [log in to unmask] <[log in to unmask]>
Date: 09 August 1999 17:42
Subject: Using MPEX to check job status


>All MPEX guru's hear my plea:
>
>I am writing pre-process MPEX commands for a job that will run in batch.
>The job can be run multiple times by the end user but two requests can't
>run at the same time.  I was looking for a MPEX command/variable that would
>let me look and see if the job is currently running.  There is the SHOWJOB
>command, but it doesn't return a variable that I can check.  I can write
>code that will set my own flags, but I thought there was a way to do this
>using MPEX commands.  Any assistance would be most appreciated.
>
>Please send replies directly to me since I only receive a digest from the
>list.
>
>Sincerely,
>Jeff Keepers
>3M Valley, NE
>

ATOM RSS1 RSS2