10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database.
For instance:
USER CITY
--------- ----------
A CITY_A
B CITY_B
C ... (2 Replies)
Discussion started by: DevendraG
2 Replies
2. Shell Programming and Scripting
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies
3. Shell Programming and Scripting
Hi,
I have a requirement as below which needs to be done viz UNIX shell script
(1) I have to connect to an Oracle database
(2) Exexute "SELECT field_status from table 1" query on one of the tables.
(3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies
4. Shell Programming and Scripting
I would like to use the result of a query in another query. How do I redirect/add the output to another variable?
$result = odbc_exec($connect, $query);
while ($row = odbc_fetch_array($result)) {
echo $row,"\n";
}
odbc_close($connect);
?>
This will output hostnames:
host1... (0 Replies)
Discussion started by: hazno
0 Replies
5. UNIX for Advanced & Expert Users
We are using mailx to send email alerts. On occasions, it is updating our Distribution list with the mesage content.
The following is the relevant portion of the script :-
MAILGROUP=`more $MDS/feeds/alerts/distribution.lst`
export MAILGROUP
echo " " | mailx -s "MDS Alert - Refresh Complete"... (6 Replies)
Discussion started by: Paul Byrne
6 Replies
6. UNIX and Linux Applications
Hi,
I am not able to send direct mails from our unix server to our lotus notes id. It was fine until we upgrade our Lotus notes server. What are the changes need to add when we upgrade Lotus notes. Please advice.
It run in sh file
This is the statement
uuencode $RTDIR/$filename... (0 Replies)
Discussion started by: rajani_p
0 Replies
7. Solaris
I am new to Unix and i want to know when using mailx can we change the sender's name from the default one. (3 Replies)
Discussion started by: blackeyed
3 Replies
8. HP-UX
Hi,
I have a shell script which has code like:
cat /tmp/MAIL_PCSD | mailx -m -s " PEWA Order Acknowledgement" $M1
and M1 is nothing but this
M1=`echo $x | awk ' {print $3}' `
If I pass absolute email address to $M1 it works fine. But, the thing is that it gets $M1 by reading some... (3 Replies)
Discussion started by: isingh786
3 Replies
9. UNIX for Dummies Questions & Answers
If I use the "Mail" link instead of the "mail" link to ../mailx I get this error.
Mail so-n-so @whatever.com
mailx: NUL changed to @
Unknown command: "postmaster"
The email still goes through but i get the error.
If I use "mail" it goes thru without the error.
Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
10. Shell Programming and Scripting
I am trying to write a shell script using the mailx command. My problem is that I want to send an email address in the CC: field. What option can I use with mailx to accomplish this. Any help would be very appreciative. (1 Reply)
Discussion started by: skammer
1 Replies