10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How to use Mailx command in unix shell script, its throwing below error
#!/bin/ksh
let x=3
If ; then
mailx -s “ $x is greater than 2” example@gmail.com << EOF
This is the message body
EOF
fi
its throwing error as syntax error at EOF... (10 Replies)
Discussion started by: only4satish
10 Replies
2. Shell Programming and Scripting
Hi,
I need to create one KSH which will send mail to set of recipients using "mailx" command like below.
mailx -s "Test mail" "test@yahoo.com, test@gmail.com" <$output.txt
The recipients are in different domains (like yahoo, gmail, etc.).
My requirement is, if any mail is undelivered,... (1 Reply)
Discussion started by: Matrix2682
1 Replies
3. Shell Programming and Scripting
Can someone tell me when the script is called, what does it do? I can't see it is going to run anything. (1 Reply)
Discussion started by: dp100022
1 Replies
4. Shell Programming and Scripting
Hello,
I am new to mailx and perl and I need help.
I need create a shell script to read the mails on the SUN server, then parse the subject line and message body of each email to extract particular data so that I can pass these data fields in as application parameters to invoke a java... (4 Replies)
Discussion started by: jliharper
4 Replies
5. Shell Programming and Scripting
Hi all,
Think this is a pretty simple problem, but I've been thinking about it for a few days. Let's say that I'm going to have to output the contents of a file as the body of a mailx message.
I'll probably do this: cat <filename> | mailx <extra commands>
However, how do I go about doing... (1 Reply)
Discussion started by: rockysfr
1 Replies
6. UNIX for Advanced & Expert Users
I have read through all documents in FAQ and have run into an issue with sending an email with body message text and an email attachment. I have included what I have thus far and I can get the message body to send in the email to work only. I cannot understand the uuencode even after I read the... (5 Replies)
Discussion started by: tekline
5 Replies
7. Shell Programming and Scripting
Hi..
How can i use mailx,mail command in Shell Script.
Suppose i gave a condition that x value is above 25 send a mail alert to abc@rediffmail.com.
How can i do this?
Regards
Sollin (16 Replies)
Discussion started by: sollin
16 Replies
8. Shell Programming and Scripting
Hi
I want to use mailx command to send a message included more than one file.
I tried to use uuencode in pipe but it could only generate one file.
I would avoid using an archive file :p
Thanks to read you.
Mathieu (2 Replies)
Discussion started by: madmat
2 Replies
9. UNIX for Dummies Questions & Answers
Hi folks,
My input file's content:
You are line1
You are line2
You are line3
etc...
I need to write a script that for every line, it will send an e-mail and the body will hold the line:
Output(The e-mail that will be sent):
First e-mail: To: aaa Subject: bbb Body:You are line1... (4 Replies)
Discussion started by: hellsd
4 Replies
10. Shell Programming and Scripting
Hi
From within a shell script my mailx doesnt seem to work...can somebody tell me what is wrong...
#!/bin/ksh
#Script to verify wheather all databases listed are up and running
#Script works with Oracle8 and above databases
#Script has to be run by ./scriptname
DBA=xiamin@unix.com
echo... (3 Replies)
Discussion started by: xiamin
3 Replies