HP3000-L Archives

April 2000, Week 1

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:
John Burke <[log in to unmask]>
Reply To:
John Burke <[log in to unmask]>
Date:
Thu, 6 Apr 2000 22:27:15 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (57 lines)
showjob sched;job=jobname,user.acct  sort of does it. Unfortunately, it does
not set a cierror value:

<GONZO: JPB,MGR.SYSMGR,PUB> THU, APR  6, 2000 10:23 PM  </SYSMGR/PUB>
[21]:setvar cierror,0
<GONZO: JPB,MGR.SYSMGR,PUB> THU, APR  6, 2000 10:24 PM  </SYSMGR/PUB>
[22]:showjob sched;job=backup,operator.sys

CURRENT:  4/ 6/00 22:25

JOBNUM  STATE IPRI JIN  JLIST    SCHEDULED-INTRO   JOB NAME

#J2034  SCHED   15  10S LP        4/ 6/00 22:30    BACKUP,OPERATOR.SYS

JOBFENCE= 1; JLIMIT= 10; SLIMIT= 700

<GONZO: JPB,MGR.SYSMGR,PUB> THU, APR  6, 2000 10:25 PM  </SYSMGR/PUB>
[23]:showvar cierror
CIERROR = 0
<GONZO: JPB,MGR.SYSMGR,PUB> THU, APR  6, 2000 10:25 PM  </SYSMGR/PUB>
[24]:showjob sched;job=back,operator.sys
 NO SUCH JOB(S)
JOBFENCE= 1; JLIMIT= 10; SLIMIT= 700

<GONZO: JPB,MGR.SYSMGR,PUB> THU, APR  6, 2000 10:25 PM  </SYSMGR/PUB>
[25]:showvar cierror
CIERROR = 0

In these cases, what I do is redirect the output of the showjob into a file
and then just look at the eof. In the case of no matching job, the eof is 3.
If one or more jobs matches, the eof is greater than 3. It's pretty quick.

John Burke

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]]On
Behalf Of Jeff Kell
Sent: Thursday, April 06, 2000 9:17 PM
To: [log in to unmask]
Subject: Finding a scheduled job


Is there a simple (i.e., not doing a showjob and parsing output) way to
determine if a scheduled job exists?

We have a :JOBCHECK command file which checks to insure that all of our
daemon and other type background jobs are running by issuing a
:tell jobname,user.acct Are you there? and then checking the CIERROR
for the unique message saying that the only qualifying target is a job,
so the job does exist.  If you get the error saying no such job exists,
you can take action to restart it.

However, I have found no equivalent for scheduled jobs.  Surely I'm
overlooking something obvious...

Jeff Kell <[log in to unmask]>

ATOM RSS1 RSS2