On Mon, 2005-09-19 at 22:26 -0400, Sam Varshavchik wrote:
Ow Mun Heng writes:
$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
Use a pipe:
$PORTFOLIO_SCRIPT --html | /usr/sbin/sendmail -t
Yep.. I did try that. It worked on my gentoo system, but IIRC it didn't on my FC3 system. Will try again.