On Mon, 2004-02-02 at 14:18, Marlo Bell wrote: > I am writing a korn shell script that does a few different things. It all > works except after it runs I need it to send an email. I can use the MAIL > program fine from shell. However, I cannot get it to run in a script because > it wants an input for the message field and to ended by a . (dot alone on a > line). I am sure there is a way around this, a switch perhaps, but I have > read the man page several times to no avail. > > So my script says: > > blah blah blah > > mail -s TESTING [EMAIL PROTECTED] > > > Any suggestions?
I've seen mailx used before, kind of like this: echo "a mail message" | mailx -s 'subject goes here' emailaddresshere Bryan P.S. I don't see mailx on my linux box, but I don't see the kornshell either, so I'm guessing if you have one you have the other (and you're on some commercial unix). _______________________________________________ newbies mailing list [EMAIL PROTECTED] http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
