08-08-2006
Parse Text file and send mails
Please help.
I have a text file which looks something like this
aaa@abc.com, c:FilePath\Eaaa.txt
bbb@abc.com, c:FilePath\Ebbb.txt
ccc@abc.com, c:FilePath\Eccc.txt
ddd@abc.com, c:FilePath\Eddd.txt...so on
I want to write a shell script which will pick up the first field 'aaa@abc.com' and store it in some memory variable say Field1.
Next I want to store c:FilePath\Eaaa.txt in Field2.
Finally I want to send a mail to Field1 with Field2 as an attachment.
I am new to Unix Shell scirpting and have no idea how to go about this !!!!!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I need to develop one application that reads all my mails (in unix mail box), and write into one txt file, My server is AIX .My mails are in AIX mail box.
Any idea? (0 Replies)
Discussion started by: redlotus72
0 Replies
2. Debian
hi
howto configure mailx ?
kind regards
ccc (11 Replies)
Discussion started by: ccc
11 Replies
3. AIX
Hi,
I am not able to send mails to the recipents.
I am using AIX 5.3 Version and using the below command.
cat test.log|mail -s "TestMail" user1@mail.com
Can you please tell me is there any configurations to be done or is the above command wrong?
Thanks & Regards
Sheshadri (3 Replies)
Discussion started by: arsheshadri
3 Replies
4. Shell Programming and Scripting
Hi Experts,
I am writing a script in which i want to parse the file and send the emails to some email-id's.
The problem is like this--
I use to get some emails on saturday and sunday's but we do not work on these days. So what i want to do is forward those emails to some email id's.
I want... (1 Reply)
Discussion started by: namishtiwari
1 Replies
5. Shell Programming and Scripting
Hi-I want to create a shell script which should read a file line by line (file having email address and transaction id of each user)and send email on email ids with the transaction id of the user respectively.
Please help - I think a while loop should help but I am very new too UNIX Shell... (1 Reply)
Discussion started by: DeepSalwan
1 Replies
6. Red Hat
I am using centOS 5.3 as server, and i hav installed sendmail-8.13.8-2.el5.i386.
But still, m not able to send mails to outer domain. Do i need to configure DNS for this?
PLease suggest a step by step guide, if u hav, for the concern, as i m new to linux and sendmail as well..
thanks (1 Reply)
Discussion started by: oracle.test2
1 Replies
7. UNIX for Advanced & Expert Users
We have these files in say \home\abcd\dm
Summary.txt
log_SI-100.lst
log_SI-101.lst
log_SI-106.lst
The contents of Summary.txt is as below
./log_SI-100.lst:Error detected, rollbacking ./log_SI-101.lst:Error detected, rollbacking ./log_SI-106.lst:Error detected, rollbacking
Now i... (5 Replies)
Discussion started by: depakjan
5 Replies
8. UNIX for Advanced & Expert Users
Hi Friends,
Could you guys help me out of this problem... I need to send an email to all the users and the email has to be picked from the text file.
text file contains the no. of records like:
Code:
giridhar
224285
847333
giridhar276@gmail.com
ramana
84849
33884... (0 Replies)
Discussion started by: giridhar276
0 Replies
9. Shell Programming and Scripting
Hi All,
I am writing one script to automate one long process. In this process we need to upload some input files and download some output files. So , I want to automate this upload and download by using mail functionality.
I want to trigger this script when I am sending mail to server. I know... (0 Replies)
Discussion started by: NirajThakar
0 Replies
10. Red Hat
Hello,
I am working on postfix server on CentOS 5.8 which will be send mails to a specific domain only.
All the things are nearly finished but i am not getting how to setup the postfix to send mails to specific domains.
Please help me out.
Thanks,
Sunny (2 Replies)
Discussion started by: sunnysthakur
2 Replies