Subject: | |
From: | |
Reply To: | Porter, Allen H |
Date: | Mon, 18 Dec 2000 15:10:11 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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
|
|
|