HP3000-L Archives

September 2001, Week 4

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:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Fri, 28 Sep 2001 21:47:33 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
Carl wrote:
>I'd like to scan the $STDLIST of the backup for the error "S/R 1454" and
>then send an e-mail to our staff if the string is found.

I'd try a combination of SPOOLF;SHOW;SELEQ and PRINT > tempfile and
/bin/grep < tempfile to locate, copy and scan (a copy) the spoolfile,
however, given the underlying issue, I'd probably consider to use a
slightly different approach... have the backup job stream a "watchdog"
job before starting the store that wakes up at a point in time that
the backup should not exceed, extracts its "origin job" from the CI
variable HPSTREAMEDBY and perform an ABORTJOB on it. If the backup did
finish in time, this should be a no-op (unless you cycled all the job
numbers by that time and it kills some innocent job) or else abort the
backup job (or at least attempt to do it).

Lars.

Oh, by the way, even the "find $stdlist by jobname" would not be
needed if you streamed the "scanner" from the backup job itself. It
could even pass HPSPOOLID to the "scanner" job via an auxiliary file
(eg with a simple setvar statement xeq'd by the scanner job) or by
constructing the scanner job with echo statements.

(let me know if you'd like a more detailed example)

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

ATOM RSS1 RSS2