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:
Larry Barnes <[log in to unmask]>
Reply To:
Larry Barnes <[log in to unmask]>
Date:
Mon, 18 Dec 2000 10:36:10 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
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

ATOM RSS1 RSS2