Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2004
    Posts
    5

    Question Unanswered: email via shell scripting

    I have a MS Word file with information about some people. I want to retrieve their email ids from this information and send them emails with a pre defined message. This has to be done using Unix Shell Scripting. Now this entire system has to be automated as in after every 24 hours this process should happen automatically.
    I need this urgently. Please help!!!!

  2. #2
    Join Date
    Dec 2003
    Posts
    56
    Step 1: move the data from the word doc into a format unix can handle (like tab seperated text)
    Step 2: give us an idea of the layout of the files so we have some idea on what data etc you want to work with...

  3. #3
    Join Date
    Feb 2004
    Posts
    5
    Originally posted by TimoV
    Step 1: move the data from the word doc into a format unix can handle (like tab seperated text)
    Step 2: give us an idea of the layout of the files so we have some idea on what data etc you want to work with...
    I have retrieved the email ids from the word file.
    Now I want to send emails to these ids. I was thinkin gof using mailx. Is it right ?

  4. #4
    Join Date
    Sep 2003
    Posts
    71
    #email.sh
    ================================
    read eid
    while
    do
    cat msg_file | mailx -s "subject_of_email" ${eid}
    done < file_with_email_id
    ================================
    // if works then put this script in cron.
    for syntax and more info, see 'man cron'

  5. #5
    Join Date
    Feb 2004
    Posts
    5
    Hey!
    Thanks a lot!
    it worked well..........



    Originally posted by skd
    #email.sh
    ================================
    read eid
    while
    do
    cat msg_file | mailx -s "subject_of_email" ${eid}
    done < file_with_email_id
    ================================
    // if works then put this script in cron.
    for syntax and more info, see 'man cron'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •