![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Send one email with output result from 2 commands | varu0612 | Shell Programming and Scripting | 4 | 01-16-2009 06:09 PM |
| Mac OS X 10.5: Can receive email, but not send email | iBot | OS X Support RSS | 0 | 10-13-2008 10:20 PM |
| Mac OS X 10.5: Can receive email, but not send email | iBot | OS X Support RSS | 0 | 09-27-2008 07:12 AM |
| Send email where # is in the email address - Using Unix | jingi1234 | UNIX for Dummies Questions & Answers | 1 | 05-23-2005 11:23 AM |
| Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) | Vetrivela | UNIX for Advanced & Expert Users | 2 | 02-15-2005 10:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Send email for each row in a result set
I have SQL giving me output of disabled ids in the system every day.
I can send on email for this disabled user list. But I want to send one email for every disabled user or for every row. thank you for your help. Kyle |
|
||||
|
No. I am pulling data from table directly. I want to send seprate email for every locked id to help desk for word order creation.
SQL below. @@\.login_JDEDB.sql set echo off set verify off set feed off term off prompt ******************************************************** prompt Todays Date prompt ******************************************************** prompt This SQL runs Daily to Display JDE Locked Out ID prompt ******************************************************** set feedback on set echo off head off feed off veri off trimspool on spool /home/oracle/log/Daily_lockedout.log set heading on; set linesize 200; Select sysdate From dual; prompt "Following JDE System User Ids Locked Out" Select SCUSER AS "User Id" FROM SYS7333.F98OWSEC WHERE SCEUSER =02; spool off exit ******************** Than follow script sends email for all user ids locked out. But I want one email per user. #!/bin/sh . /home/oracle/.cron_profile # export LOGDIR=/home/oracle/log cd /home/oracle # sqlplus /nolog @/home/oracle/Daily_lockedout.sql # cat $LOGDIR/Daily_lockedout.log >>$LOGDIR/Daily_lockedout.all.log mail -s "JDE User IDs Lockedout" help@abc.com < $LOGDIR/Daily_lockedout.log mail -s "JDE User IDs Lockedout" support@abc.com < $LOGDIR/Daily_lockedout.log Thanks for your help. Akbar |
| Sponsored Links | ||
|
|