Mail from a shell script?

2004-09-13 Thread Ryan Sommers
I'm attempting to have a few shell scripts email output. I'm running into a few problems and was wondering if there were any ways to overcome them in a shell script or whether I'll have to go to perl or not. (Note, shell doesn't matter, I've been using sh but recently went to bash since sh on

Re: Mail from a shell script?

2004-09-13 Thread Richard Lynch
Ryan Sommers wrote: First problem I ran into. I'm attempting to send the mail via `which mail`. I first was going to attempt to concatenate the message via message=${message}$'\n'other line However, this strips the newlines out of the variable (both sh and bash). I then tried using the string

Re: Mail from a shell script?

2004-09-13 Thread Jez Hancock
On Mon, 13 Sep 2004 11:31:55 -0600 (MDT), Ryan Sommers [EMAIL PROTECTED] wrote: First problem I ran into. I'm attempting to send the mail via `which mail`. I first was going to attempt to concatenate the message via message=${message}$'\n'other line However, this strips the newlines out of