On Tue, 2005-09-20 at 01:23 -0400, A. Khattri wrote: > On Tue, 20 Sep 2005, Ow Mun Heng wrote: > > > I did it, didn't have to go through perl. Just added a mail_header() to > > my script.
> > #!/bin/sh > > # > > TEMPFILE="/tmp/file.$$" > > PORTFOLIO_SCRIPT=$HOME/scripts/portfolio.sh > > > > $PORTFOLIO_SCRIPT --html > $TEMPFILE 2>/dev/null>&1 > > && /usr/sbin/sendmail -t < $TEMPFILE && rm $TEMPFILE > > > > Next, I think the above code can be enhanced by not using a tempfile. > > perhaps a < EOF > > > You could probably use a HERE document. > > http://www.tldp.org/LDP/abs/html/here-docs.html Not sure what that is. No I-Net access currently. Anyway, on the gentoo box, a simple $PORTFOLIO_SCRIPT --html 2>/dev/null>&1 | /usr/sbin/sendmail -t works. In Fedora, the system which will be sending it out, well, I remember doing just that but it didn't work. Will try again. -- gentoo-user@gentoo.org mailing list