Short Mail Program Help

Hi,

I have been out of the loop with my UNIX/Linux for several years and have been working mainframe. I was trying to create a short two line program to create a list of email addresses as a variable and then send the list a file. Here is what I did and I thought that is was right, but I am not getting the email:

LIST=jbr3673 mmd4143 ttg2210
mail LIST <test

Please let me know what I am forgetting, I know that it must be something very stupid, but I just don't remember, it has been several years.

Thanks in advance for any help

jbrider:confused:

Pls use code tags as required by forum rules.

I assume all recipients are on your local node, so no domain part etc. of the e-mail- address is necessary.
Use $LIST to make the shell expand your variable.

Thanks,

I will give it a try and let you know.

jbrider

Also make sure you enclose string variable value & variable name in double quotes:

LIST="jbr3673 mmd4143 ttg2210"
mail "$LIST" < test