03-29-2009
help with mailing contents to a list of people
I have to create a unix program that will mail the contents of a file to a list of users.The file to be mailed will be provided as an argument to the program on the command line. The list of users or mail recipients should be a ”variable” that is created inside the program
This program MUST be created with just two lines of code. (Hint: make the variable “list” on one line, and the mail on the next line.)
Does anyone have an idea on how to do this? I can't figure out the second line
Line1 list= "email1, email2, email3"
Line2 mail $list > something?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
HI all,
I'm searching for mailing list software to install on my Linux RedHat 7.3 with Web interface if possible. Any suggestions???
Thank you all
Regards.
solvman (3 Replies)
Discussion started by: solvman
3 Replies
2. Forum Support Area for Unregistered Users & Account Problems
Sir.
I am intrested in joining of this forum. I want to know that is "Mailing List" is supported to send a query or not.
Please reply.
Rgds
Sanju kumar (1 Reply)
Discussion started by: Sanju Kumar
1 Replies
3. UNIX for Dummies Questions & Answers
I want to list the contents of a directory, but I do not want to use the ls, is there another way?? (3 Replies)
Discussion started by: carl_vieyra
3 Replies
4. UNIX for Advanced & Expert Users
I need to find out for sure whether or not Solaris 10x86 comes with procmail installed? I only need it for mail subscription "Only"
WE have about 51 mailing lists subscriptions from listproc.
I need help just doing mailing lists.
How to best go about this?
I downloaded version for Solaris... (0 Replies)
Discussion started by: parente
0 Replies
5. Shell Programming and Scripting
I need to find out for sure whether or not Solaris 10x86 comes with procmail installed? I only need it for mail subscription "Only"
WE have about 51 mailing lists subscriptions from listproc.
I need help just doing mailing lists.
How to best go about this?
I downloaded version for Solaris... (0 Replies)
Discussion started by: parente
0 Replies
6. UNIX for Dummies Questions & Answers
Hey guys!
I'm so glad I found this site, I've had so many questions and have been left alone for roughly a year scanning man pages but It's just not quite cutting it for some things.
So, I often like to list directories when browsing around my local machine, a friend's machine, or my web... (6 Replies)
Discussion started by: bbilheimer
6 Replies
7. Shell Programming and Scripting
I have a group of getOSinfo.out files that I would like to list the filename and then its contents out to. I can do it for each one individually, but would prefer to do it all in one shot and have one large file that has all of the oslevels and filenames. I am not very handy with scripts, so I... (2 Replies)
Discussion started by: snakernetb
2 Replies
8. Windows & DOS: Issues & Discussions
I am having difficulty listing the contents of a specific disk drive including hidden files and folders by size on disk.
Its been a while since i have used dos and batch files in windows as am used to UNIX so was wondering if anybody could help me with this?
Regards,
Alan Jackson (1 Reply)
Discussion started by: pure_jax
1 Replies
9. Shell Programming and Scripting
Well I did a search and didn't anything for my specific case.
I got a directory with a bunch of text file. All of them have the following pattern on the filename "ABCD_<As of Date>.txt"
Example:
ABCD_20110301.txt
ABCD_20110302.txt
ABCD_20110303.txt
All I want to accomplish is a Korn... (3 Replies)
Discussion started by: Shark Tek
3 Replies
10. UNIX and Linux Applications
Hi.
I want to create mailing list in my directory, however standart object classes groupOfUniqueNames and groupOfNames don't contain mail attribute. What is the common way to create mailing list in openldap? (0 Replies)
Discussion started by: urello
0 Replies
LEARN ABOUT NETBSD
forward
FORWARD(5) BSD File Formats Manual FORWARD(5)
NAME
forward -- mail forwarding instructions
DESCRIPTION
The .forward file contains a list of mail addresses or programs that the user's mail should be redirected to. If the file is not present,
then no mail forwarding will be done. Mail may also be forwarded as the standard input to a program by prefixing the line with the normal
shell pipe symbol (|). If arguments are to be passed to the command, then the entire line should be enclosed in quotes. For security rea-
sons, the .forward file must be owned by the user the mail is being sent to, or by root, and the user's shell must be listed in /etc/shells.
For example, if a .forward file contained the following lines:
nobody@NetBSD.org
"|/usr/bin/vacation nobody"
Mail would be forwarded to <nobody@NetBSD.org> and to the program /usr/bin/vacation with the single argument nobody.
If a local user address is prefixed with a backslash character, mail is delivered directly to the user's mail spool file, bypassing further
redirection.
For example, if user chris had a .forward file containing the following lines:
chris@otherhost
chris
One copy of mail would be forwarded to chris@otherhost and another copy would be retained as mail for local user chris.
FILES
$HOME/.forward The user's forwarding instructions.
SEE ALSO
aliases(5), mailaddr(7), sendmail(8)
BSD
July 2, 1996 BSD