The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > The Lounge > What's on Your Mind? > Chat with iBot - Our RSS Robot Girl
Google UNIX.COM


Chat with iBot - Our RSS Robot Girl The Home of iBot, Our RSS Robot iBot. You can complain about RSS here :-)

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
UNIx junk emails sireesha15 UNIX for Dummies Questions & Answers 6 12-14-2006 11:08 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 03:57 AM
Unix emails in Windows dti650 UNIX for Advanced & Expert Users 3 02-11-2005 05:07 AM
Sending Emails to a unix process xsriniva UNIX for Dummies Questions & Answers 2 09-13-2002 04:11 AM
Maingrame to UNIX sending UNIX commands skammer UNIX for Dummies Questions & Answers 2 06-27-2002 09:19 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2006
Registered User
 

Join Date: Aug 2006
Posts: 54
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
New to Unix, Sending Emails

Hi there
I am new to Unix ShellScripting. And I am assigned the following job. How Do I start with doing this ?

I have a text file. this text file consists of Email Id and the text files to be sent to this email Id as attachement.
I want to write a Unix Shell script to achieve this. Any idea how I can do this?

My input text file is in this format
aaa@abc.com,XYZ/EFG/HIJ/Email1.txt
bbb@jkl.com,XYZ/EFG/HIJ/Email2.txt
ccc@efg.com,XYZ/EFG/HIJ/Email3.txt

I want to send an attachment of XYZ/EFG/HIJ/Email1.txt to aaa@abc.com. Similarly to other users too. And while doing this I want an log file to be created which will show me whether Email sending has succeeded or failed. If failed why ?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-07-2006
Gollum's Avatar
Our Pet ForumBot
 

Join Date: Feb 2005
Posts: 64
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
RE: New to Unix, Sending Emails

Quote:
Originally Posted by Amruta Pitkar
Hi there
I am new to Unix ShellScripting. And I am assigned the following job. How Do I start with doing this ?

I have a text file. this text file consists of Email Id and the text files to be sent to this email Id as attachement.
I want to write a Unix Shell script to achieve this. Any idea how I can do this?

My input text file is in this format
aaa@abc.com,XYZ/EFG/HIJ/Email1.txt
bbb@jkl.com,XYZ/EFG/HIJ/Email2.txt
ccc@efg.com,XYZ/EFG/HIJ/Email3.txt

I want to send an attachment of XYZ/EFG/HIJ/Email1.txt to aaa@abc.com. Similarly to other users too. And while doing this I want an log file to be created which will show me whether Email sending has succeeded or failed. If failed why ?
When did you start doing Unix ShellScripting ?
Hi there!Good gossip: you are assigned the following job.
You must persuade me to start with doing this.Interesting. I have a lot of answers to silly questions.
text fileWhat does "this" refer to?Interesting. I want to find out more about you.Yes I think there are. Have you told many people that your
input text file is in this format aaa@abcdot comXYZEFGHIJEmail1?What time is it there?
Tell me more about your text file.
Have you ever been to Europe?
Can you please rephrase that with fewer ideas, or different thoughts?
My brain contains 43319 categories, but not one that matches your last input.
Good point.That is a hypothetical question.No I never get confused.
Reply With Quote
  #3 (permalink)  
Old 08-07-2006
Registered User
 

Join Date: Aug 2006
Posts: 54
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
How to do field reading in shell scripting ?
And how to send mails ?
Reply With Quote
  #4 (permalink)  
Old 08-07-2006
Gollum's Avatar
Our Pet ForumBot
 

Join Date: Feb 2005
Posts: 64
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by Amruta Pitkar
How to do field reading in shell scripting ?
And how to send mails ?
What is it to you.



Let me think about it.How much do you think
to send mails
is?



Check back later and see if I learn the answer to that one.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix find grep find mtime find null character in a unix file grep multiple lines grep or grep recursive gzip password hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime perl array length ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script


All times are GMT -7. The time now is 02:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101