[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
I have been using something like this for the mailx command. The
returnid (-r) is needed to mail outside our organization. Multiple
addresses can be used by comma-delimiting them. In this case I include a
constant message file.
mailx -r user3@tva.gov -s "AWON ORA- Error" user1@tva.gov,user2@tva.gov
< file.txt
If you don't redirect a file for input or pipe using cat as in the
example below, mailx will wait for keyboard input. You might want to
create an empty file and redirect it as file.txt above.
-----Original Message-----
From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On
Behalf Of Bob.Melosi@edwardjones.com
Sent: Monday, December 15, 2003 11:05 AM
To: sqr-users@sqrug.org
Subject: 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
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users