HP3000-L Archives

December 2000, Week 3

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:
Ronald R Horner <[log in to unmask]>
Reply To:
Ronald R Horner <[log in to unmask]>
Date:
Mon, 18 Dec 2000 14:18:21 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (77 lines)
If you have VESOFT, you can test the $stdlists for failure.  Then have a
"checking" job to alert you, if the other job failed.  The other thing that you
can do is to control the failure.Using the "ERRCLEAR" command, you can test the
error and send a message.

Later

"Porter, Allen H" wrote:

> If a stream job has an error, it will fail at that point unless you set
> HPAutoContinue.  Right?  So how do I get the stream job to send a message
> upon error if the job has already failed?  Do you setup another job to
> monitor your main job?
>
> -----Original Message-----
> From: Larry Barnes [mailto:[log in to unmask]]
> Sent: Monday, December 18, 2000 11:36 AM
> To: [log in to unmask]
> Subject: Re: [HP3000-L] E-mailing spoolfiles
>
> I have a command file that prompts for the subject, message to send, and the
> email address (in the example its an at&t cell phone).  I then place an xeq
> command in my job streams at specific points.  If an error is detected then
> I
> get paged on my cell phone.
>
> Command file:
> setvar mailfrom "hpmail@your_email_server_name"
> setvar mailsmtphost "nnn.nn.nn.nnn"
> echo
> input subj,"what is the subject of this email? "
> echo
> input file_name,"enter the filename to send or a message here "
> echo
> input send_to,"enter the email address you are sending this to "
> echo
> setvar mailsubject "!subj"
> run hpemail.util.sys; &
>  info='-t !send_to !file_name'
>
> In a job stream it looks like this:
>
>  !ESP
>   T SHIPMON
>   F SHIPMENTS EDIT LISTING COMPLETED UNSUCCESSFULLY.
>   QUIT
>  !IF ESPULFINDCOUNT > 0
>  ! SETVAR JTIME 'Msg TIME: !HPTIMEF: '
>  ! HPEMAIL
>    MON EDIT
>    !JTIME MON EDIT HAS UNKNOWN ERRORS
>    [log in to unmask]
>
> I run espul and text in a file to search for the 'shipments edit listing
> completed unsuccessfully'.  If the variable espulfindcound is greater than
> zero  I set a variable call jtime to the current system time.  I then call
> the
> 'HPEMAIL' script  I include the info for each prompt on a seperate line and
> hopefully within a few minutes I get paged.
>
> --
> Larry Barnes
> Director of I.T.
> Mitek Corp.
> 602-438-4545 x1366
> Phoenix, AZ 85040
>
> Check Us Out !
> http://www.mitekcorp.com

--
Ron Horner
HP3000 Systems Administrator
JCPenney Logistics
[log in to unmask]
(414) 259-2274

ATOM RSS1 RSS2