Home » Infrastructure » Unix » Sending messages
Sending messages [message #301642] |
Thu, 21 February 2008 03:54  |
user71408
Messages: 585 Registered: November 2007 Location: NE
|
Senior Member |
|
|
Hi I have records as follows.
Number Rows stmt
------------------------------
1001 10 select count(*) from tabs where rows<=10
now what happens is if rows<=10 it returns '0' .if it's >10 then it returns 'nothing'
Now the requirement is :
" if rows>10 i need to send a mail to any(for example... abc.ss@gmail.com mail-id mentioned as " The statement was failed because rows>10."
I need to write "SHELL SCRIPT" for this.
So anyone please send me the script for this issue..
Thank you.
[Updated on: Thu, 21 February 2008 04:00] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Sending messages [message #301688 is a reply to message #301667] |
Thu, 21 February 2008 06:33   |
user71408
Messages: 585 Registered: November 2007 Location: NE
|
Senior Member |
|
|
hi Michel,
I have two variables A,B
A:=0 and B<>0
now the requirement is
if A then
display message as " working fine"
else
(i.e if B then)
dispaly message as " you are crossing the limit".
I need to write to write a program for this using "shell scripting".
so could u please send me the solution for this.
[note: These mesages should be sent to mail-id's]
Thank you.
[Updated on: Thu, 21 February 2008 06:34] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Thu May 01 18:43:01 CDT 2025
|