Why don't you just add the mail command to each case option:
Thanks a lot , but I want that mail to be send to the users on their Gmail Account let say I have two accounts abcd1@gmail.com and abcd2@gmail.com so I want mail to be send to these two accounts so please advise how to send mail to these two accounts through shell script and what settings need to be configured like SMTP .
---------- Post updated at 07:38 PM ---------- Previous update was at 07:37 PM ----------
Quote:
Originally Posted by saurabh.mishra
In such case i suggest that you create a mailing code and call it. To email you can use several ways from maix to uuencode please be more specific as to what exactly you wish to achiever.
The idea way in your scenario will be if my assumptions are correct
after your start and stop scripts add the below
If you have multiple users and DL's create a variable
and use it in the above command.
hanks a lot , but I want that mail to be send to the users on their Gmail Account let say I have two accounts abcd1@gmail.com and abcd2@gmail.com so I want mail to be send to these two accounts so please advise how to send mail to these two accounts through shell script and what settings need to be configured like SMTP
Hi,
Could someone help me to get yesterday's date in MMDDYY format.
echo `date '+%m%d%y'`
is giving me today's date in the above format.
Thanks in advance for your help..
Suresh. (1 Reply)
I have a few xml files and I want to input say 5 parameters within each file. is it possible to do so with sed?
<parameter>A</parameter>
<parameter>B</parameter>
....
....
And so on.
These parameters are meant to go in just inside:
<?xml... (2 Replies)
i have a function defined in one ksh
i want to use the same functionality in another ksh
i am using
. ../<ksh name>
but it is not picking that functionality
what i have to do for the same (2 Replies)
Hi,
I have a script running as a cron job. Is it possible to send the output to multiple user through mail. I cant add multiple mail id.
_TOADDR=xxx@xxx.com;xxx@xxx.com
_FROMADDR=xxx@xxx.com
from=$_FROMADDR
emailtarget=$_TOADDR
subject=$_SUBJECT
CONTENT=$1
Is it possible to send to... (1 Reply)
Hi,
I wanted to add a email option to this script. and was wondering if anyone could help me out.
#!/bin/ksh
echo "Finding hdisk"
<DIR>/find-disk
i=1
b=0
p=0
while ... (2 Replies)
Hi everyone, today i need that someone help to understand this particular line of command.
So you can explain to me step by step, it will be great.
---------- Post updated at 11:53 AM ---------- Previous update was at 11:51 AM ---------- (9 Replies)
when I try to read a file and send email using cat and sendmail: The email received having additional spaces.(Between the letters of words in the text)
My code:
export MAILTO="sa@y.com"
export SUBJECT="mydomain PREPROD MONITOR AT ${DATE}"
export... (5 Replies)
Hi Experts,
We want to add the 'from' email address to mailx command in all our linux script. After searching this site I am able to find the command '-- -f' to add the from the email address. Bu the problem is our from email address is :- "Proper Support Name <support@company.com>"
Now when I... (6 Replies)
Hi Guys,
I am stuck in between and seeking help here.
Requirement: A script that will run every morning which will connect to Mysql database and run the query to inform us about the holidays (it will also check if there were any holidays during last 2 business days). So the three queries are... (11 Replies)