Manipulate condition to send mail based on output text in file
Hi All,
I have a working script as below.
This script takes the output from script.X1.out file and appends the text "Files loaded with return code" and sends the email. Now what I want is to append Status as Success or Failure based on return code in the .out file. like as below.
Please help me build this piece of code. Kindly suggest .
Thanks,
Midhun
Last edited by vbe; 08-30-2019 at 08:20 AM..
Reason: code tags! even for so little...
I have a utility that opens a telnet session and allows me to execute commands through a script. The utility allows me to output to a text file whatever is outputted to screen.
This utility runs from a DOS prompt in Windows 95/98, NT or 2000. How can I mail text file this to a certain user.
I... (2 Replies)
I have one file say CM.txt which contains values like below.Its just a flat file
1000,A,X
1001,B,Y
1002,B,Z
...
..
total around 4 million lines of entries will be in that file.
Now i need to write another file CM1.txt which should have
1000,1
1001,2
1002,3
....
...
..
Here i... (6 Replies)
I have a list of mail ids in text file and want a ksh script that reads this text file and sends a mail to all mail ids with same subject line and content.
I am using UX-HP machine and KSH.
Thanks for help in advance! (5 Replies)
Hi All,
Requirement is to select the data from database and send the output in mail. But the output should in HTML tabular format in mail body.
For example my select command is :
select ename,esal,edegn,dept from emp where deptno in (10,15);
In the mail body the output should :
Employee... (3 Replies)
only wc -l greater than 0 then send email to owner, otherwise do nothing.
ie.
result=powermt display dev=all|awk '{print $7}'|grep -i dead|wc -l
if
then
echo $result
else
:
fi
mailx -s "there is dead path (s)" "mymail@mydomain.com"
-----------
it is not working... (2 Replies)
I am generating a output:
Name Count_1 Count_2
abc 12 12
def 15 14
ghi 16 16
jkl 18 18
mno 7 5
I am sending the output in html email, I want to add the code:
<font color="red"> NAME COLUMN record </font>
for the Name... (8 Replies)
Hi All,
I want to change the name as SEQ_13
ie., <Property Name="Name">SEQ_13</Property>
when the Stage Type is PxSequentialFile
ie., <Property Name="StageType">PxSequentialFile</Property> :wall:
Input.XML
<Main>
<Record Identifier="V0S13" Type="CustomStage" Readonly="0">... (3 Replies)
Hello Gurus,
I have a question.
I have a file which has 2 columns and is tab separated and looks like below:
FIELD1 FIELD2
Manual m456@hotmail.com
Execution din098@gmail.com
Artistic m456@hotmail.com
Graphic din098@gmail.com
FIELD2 values will have always either of the 2 above... (8 Replies)
Hi All,
I have records in a file with name,SSO,openitems,manageremail with | delimited file.Now i want to group the records by SSO and openitems and send email to their manageremail.
kiran|1111|draft|aaa@gmail.com
guna|2222|reject|bbb@gmail.com
kiran|1111|submitter|aaa@gmail.com... (2 Replies)
Hi All,
I am having a job and I need to send email when the job is running. On any other case (success,fail) I don't needed to send email. I check with BMC they told they dont have that in the version I am using.
So I created a dependent job and grepped for the status and sent email. My... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
LEARN ABOUT DEBIAN
mlmmj-send
mlmmj-send(1) General Commands Manual mlmmj-send(1)NAME
mlmmj-send - send mail to a mailinglist or similar
SYNOPSIS
mlmmj-send [-L /path/to/list | -l listctrl] -m /path/to/mail [-a] [-D] [-F] [-h] [-o] [-r] [-R] [-s] [-T] [-V]
-a: Don't archive the mail
-D: Don't delete the mail after it's sent
-F: What to use as MAIL FROM:
-h: This help
-l: List control variable.
-L: Full path to list directory
-m: Full path to mail file
-o: Address to omit from distribution (normal mail only)
-r: Relayhost IP address (defaults to 127.0.0.1)
-R: What to use as Reply-To: header
-s: Subscribers file name
-T: What to use as RCPT TO:
-V: Print version
DESCRIPTION
This binary is used to send all kinds of mail to mlmmj managed mailinglists, but can potentially be used standalone for sending mails.
The only option that is not self explanatory is the -l list control option:
'1' means 'send a single mail'
This is used together with -F and -T to send one mail to one recipient.
'2' means 'mail to moderators'
Used for sending mails to the moderators of a list.
'3' means 'resend failed list mail'
'4' means 'send to file with recipients'
'5' means 'bounceprobe'
'6' means 'single listmail to single recipient'
BUGS
This manual page is very scarce documentation of the mlmmj-send binary. The reason for this is that it's really not supposed to be used by
any human, but only supposed to be invoked from other mlmmj binaries. So in case more documentation is needed, please read the source.
AUTHORS
This manual page was written by the following persons:
Soren Boll Overgaard <boll@debian.org> (based on html2man output)
Mads Martin Jorgensen <mmj@mmj.dk>
mlmmj-send January 2010 mlmmj-send(1)