Subject: | |
From: | |
Reply To: | |
Date: | Mon, 18 Dec 2000 10:36:10 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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
|
|
|