creating a mailng list for mailx


 
Thread Tools Search this Thread
Operating Systems HP-UX creating a mailng list for mailx
# 1  
Old 06-09-2005
Data creating a mailng list for mailx

I'm trying recall how to set up a script to have mailx read a mailing list of people to recieve a message.

I had set up the script to have every name inside but the list could grow and/or change.

can any one help?

I'm using HPUX 11 on a rp7410.
# 2  
Old 06-09-2005
You don't usually do it that way. Edit the .mailrc file for the profile sending the mail.
You can create either an alias or a group in the $HOME/.mailrc file

/etc/mail/aliases is used for really long lists of names - more than 1024 characters.
# 3  
Old 06-10-2005
MySQL Thanks Jim

Thanks for the info Jim. I used the aliases file. It was successful. I know there is way to have the script read the names from the file and insert them. It was simple one line string. It has been many years since I had to use. Oh well it will come to me in the middle of the night... Thanks again Smilie Smilie Smilie
# 4  
Old 06-10-2005
use "-t" option to mail command ...
# 5  
Old 06-13-2005
The OP wanted to use mailx, which doesn't support -t
# 6  
Old 06-13-2005
echo "Message" | mailx -s "Subject" $(<mailing_list.txt)
# 7  
Old 06-14-2005
Quote:
Originally Posted by jim mcnamara
The OP wanted to use mailx, which doesn't support -t
my apologies --- but i have to disagree ... see "man mailx"
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Creating list

how do i create a list of every process running on my system and place it into a file lets say p1.txt (1 Reply)
Discussion started by: richiestank
1 Replies

2. UNIX for Dummies Questions & Answers

Creating a two column list of date pairs form a single column list

Hi all, looking for some help here. I'm what you'd call a dirty programmer. my shell scripts might be ugly, but they (usually) function... Say I have a single column text file with a list of dates (yyyymmdd) that represent the elevation of a point on that date (I work with land subsidence, so... (2 Replies)
Discussion started by: jbrandt1979
2 Replies

3. UNIX for Dummies Questions & Answers

Creating a column based list from a string list

I have a string containing fields separated by space Example set sr="Fred Ted Joe Peter Paul Jean Chris Tim Tex" and want to display it in a column format, for example to a maximum of a window of 100 characters And hopefully display some thing like Fred Ted Joe ... (3 Replies)
Discussion started by: kristinu
3 Replies

4. UNIX for Dummies Questions & Answers

Creating columns from a list

I have a list below, how can I have things separated nicely in columns mv browseDir.tcsh browseDir.csh mv checkSRDist.tcsh checkSRDist.csh mv create-data-tinv.tcsh create-data-tinv.csh mv createDocs.tcsh createDocs.csh mv createMisfit.tcsh createMisfit.csh mv createModel.tcsh... (4 Replies)
Discussion started by: kristinu
4 Replies

5. Shell Programming and Scripting

HPUX mailx CC list

I want to use CC(Carbon Copy) in mail list using HP-UX I am using the command : echo "hello" |mailx -m -s"subject" -c "CC_LIST" "TO_LIST" but I am getting an error -c illegal option...I tried with the solution from forums but no luck... (12 Replies)
Discussion started by: gautamadak
12 Replies

6. Shell Programming and Scripting

unable to put cc list in mailx

Hi, I am using mailx command to send mail. But unable to use -c option to send mails by cc list. eg. ..mailx -s "subject" -c "CCLIST" "TOLIST" Its showing " illegal option -- c" I am using HP UX. Can anybody help me out. Thanks in advance..! (3 Replies)
Discussion started by: Kattoor
3 Replies

7. UNIX Desktop Questions & Answers

Using Mailx to send to list of email addresses

Im trying to use a shell script to send to a list of email addresses in a txt file. Here is what i have tried but it keeps sending to dead.letter... Success.ksh contains... mailx -s"Night Batch Success" 'cat /Scripts/email_addresses.txt' < /Scripts/email_body_message.txt The email body... (1 Reply)
Discussion started by: aguad3
1 Replies

8. UNIX for Dummies Questions & Answers

creating a file with a list

I would like to create a text file that contains the list (names of files and dirs) of a particular directory... any ideas ? (5 Replies)
Discussion started by: hinman
5 Replies

9. Solaris

distribution list won't expand in mailx message

Hi, I have a distribution list called /nisserver/sysadmin/user-alias-files/all_users. The contents of the file have the userid/usernames of the techs in my company. These userid/usernames in the file do not have the @abc.com appended to them. After I type the newaliases command the results... (4 Replies)
Discussion started by: antalexi
4 Replies

10. UNIX for Dummies Questions & Answers

mailx and mail list help - newbie qustion

I have a basic question - how do I create and then use a mail list to be able to send a mailx email to multiple recipients. I assume I create a test file using vi, containing the email addresses - but what is the format - are the addresses separated by ";", or by spaces, ....??? Is there a... (1 Reply)
Discussion started by: HikerLT
1 Replies
Login or Register to Ask a Question