Sponsored Content
Top Forums UNIX for Dummies Questions & Answers to send email to multiple users Post 302161573 by vishwas.shenoy on Friday 25th of January 2008 05:00:23 AM
Old 01-25-2008
Power to send email to multiple users

hi,

i'm pretty new to this unix. i've been asked to create a shell script which will pick up the email id from a text file(stored in same machine, same directory) searches for that id in another file in which a product name( a one line text) is mentioned against it. then it should send a mail with body of the text having the product name. the challenge here is that, in the 2nd text file, for some email id's there are more than one products and they have not listed all of them in one shot i.e, for ex for email id A, product 1 is mentioned against it in one line then somewhere down the list product 2 is listed against the same id A so on..... and i've been asked to send only a single mail to the email id A listing all the products instead of sending multiple mails. please help me out in this.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to send mail to multiple users ???

Hi All, How to send mails to multiple users using a single mailx command. Urgently require help Thanks in advance Rgds Arunava (3 Replies)
Discussion started by: arunava_maity
3 Replies

2. UNIX for Advanced & Expert Users

Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win)

Hi A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as " usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies

3. Shell Programming and Scripting

Using mailx to send email to multiple users.

Hi, I am using the mailx command to send email to multple users. The command works fine when i am sending mail to a single user but when i insert multiple email ids inside the quote it does not work. All the email ids are coming from a property file.Please have a lookt at the property file and... (4 Replies)
Discussion started by: priyaksingh
4 Replies

4. UNIX for Dummies Questions & Answers

send email to more users

Hi, If I want to send an email to serveral users, what is the correct way to do it? I know a little bit mail command. If I want to send email to John and Scott after UNIX shell scripts have completed the job. I type: mail -s 'Job has been completed successfully' john@yahoo.com < log.txt ... (4 Replies)
Discussion started by: duke0001
4 Replies

5. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

Hello , I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them . I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies

6. Shell Programming and Scripting

Grep multiple instances and send email.

Removed (15 Replies)
Discussion started by: saisneha
15 Replies

7. Shell Programming and Scripting

Send email from shell to users in Mysql

Hi, I need help about sending mail in linux. I have a ubuntu server with working web site, users are uploading files in one main directory (to folder inbox). With samba I shared that directory and on other mashine is Windows server and application that is reading that files and writting content to... (3 Replies)
Discussion started by: drazenmd
3 Replies

8. Shell Programming and Scripting

How to send email with multiple attachments ?

Hello , I am trying to send an email with two attachments . I have tried all previous suggestion in this forum but none worked. I could send one attachment in an email by uuencode $file "$file" | mailx -m -s "File" xxx@xx.com but unable to send multiple attachments . I have tried ... (8 Replies)
Discussion started by: RaviTej
8 Replies

9. Shell Programming and Scripting

Send a mail to multiple users

I have a file 1.txt which has 3 mail ids as below: Maillist=abc@gmail.com def@gmail.com rcg@gmail.com Now I want to write a script which will read this file and send the mail to all the users present in this file. (6 Replies)
Discussion started by: Vivekit82
6 Replies

10. Shell Programming and Scripting

Loop multiple directory, find a file and send email

Hello ALL, need a BASH script who find file and send email with attachment. I have 50 folders without sub directories in each generated files of different sizes but with a similar name Rp01.txt Rp02.txt Rp03.txt ...etc. Each directors bound by mail group, I need a script that goes as... (1 Reply)
Discussion started by: penchev
1 Replies
ris(8)							      System Manager's Manual							    ris(8)

Name
       ris - remote installation services utility

Syntax
       /etc/ris

Description
       The  utility performs remote installation services which install system software to a client machine through the TCP/IP local network.  The
       client machine can be a VAX or a RISC machine.

       The server on which the remote installation services area is located can be either a VAX or a RISC machine.

       The remote installation services utility uses the directory as a base.  When you install the first product to the utility creates a  remote
       installation services area.  The area is called either or

       The  area contains one or more ULTRIX software products.  Each product contains the subsets of the kits that can be installed to clients on
       a network.  Clients registered for an area install software over the network to their processor.

       The utility performs the following functions:

       a -  Add client

       r -  Remove client

       s -  Show products in remote installation environments

       m -  Modify client

       i -  Install software

       You must use the utility interactively to set up a remote installation services area.  After you have set up a remote installation services
       area on the server, you can use the utility either interactively or from the command line to manage clients.

       The directory also holds a subdirectory, This directory contains a database file, that you can use to manage multiple clients.

Examples
       The example that follows invokes the utility interactively:
       # /etc/ris

       A menu appears from which you can select options to perform functions.

       The examples that follow manage the client using the command line.

       The syntax of the command to add a client follows:
       /etc/ris -a <clientname> -h <Ethernet_address> -p path,product[,product]

       The following command adds client and allows that client to install a product over the network:
       # /etc/ris -a bergal -h 08-00-2B-03-05-8B -p ris0.mips,product_1

       The syntax of the command to modify a client follows:
       /etc/ris -a <clientname> [-h <Ethernet_address>] [-p <path,product,product>]

       The following command modifies client and allows that client to install a product over the network:
       # /etc/ris -m bergal -p ris0.mips,product_2

       The syntax of the command to remove a client follows:
       /etc/ris -r <clientname>

       The following command removes client
       # /etc/ris -r bergal

Files
See Also
       setld(8)
       Guide to the Remote Installation Services
       Guide to Server Setup

																	    ris(8)
All times are GMT -4. The time now is 09:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy