HP3000-L Archives

December 2002, 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:
Jeff Kell <[log in to unmask]>
Reply To:
Jeff Kell <[log in to unmask]>
Date:
Wed, 4 Dec 2002 10:37:14 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
Is there any way to find out if a job is scheduled BY NAME, other than
brute force parsing a :showjob output?  JINFO only takes job numbers.

For example, if you want to see if a named job is running, you can:

   :tell foo.bar Are you there?
   :if cierror=1627 then

since the tell generates "J2 FOO.BAR" not interactive.  Message not sent
to job. (CIWARN 1627).

This little trick doesn't work if the job exists but is scheduled,
you get There was no session found that matched this ID. (CIWARN 1619)

SHOWJOB doesn't set any return codes whether it exists or not.

Is there an crafty workaround, or do you have to parse SHOWJOB output?

Jeff

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2