[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: [sqr-users] email message to users when error



Here is how we do it in UNIX.

call system using 'echo ''Unknown condition in xxx.sqr.'' > xxx020.txt' $status
call system using 'cat xxx020.txt | mailx xxx@xxxxx.com' $status      
call system using 'cat xxx020.txt | mailx yyy@yyyyy.com' $status      
call system using 'rm xxx020.txt' $status

There may be a better way to send multiple ones, we just execute the command 2 
times with different emails.

> Greetings everyone,
> I know this is one of those questions that has been asked a million times,
> but please answer it one more time for me.
> In my sqr, after comparing my files, using a call system command, if they
> are identical, my program errors and stops.
> Now, what I need to do is also send an email.  I have never done this before
> and could use a little assistance please.
> What Call System command would I use to send the error message  (it can just
> be in the subject line, I don't need any text)
> to three or four different email addresses?
> Thanks and Happy Holidays!
> Patti
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **********************************************************************
> 
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users

Bob Melosi  x5-8427

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users