On Fri, 16 Sep 2005 09:43:50 +0800 Ow Mun Heng wrote: > That's what I just did.. > $ cat cron_fetch_stock.sh > #!/bin/bash > # > TEMPFILE="/tmp/file.$$" > PORTFOLIO_SCRIPT=$HOME/scripts/portfolio.sh > > $PORTFOLIO_SCRIPT --html > $TEMPFILE 2>/dev/null>&1 && mail -a > "Content-Type: text/html" -s "Stock Quotes `date +%c`" < $TEMPFILE > gentoo && rm $TEMPFILE
whats wrong with : $PORTFOLIO_SCRIPT --html 2>/dev/null | mail -a "Content-Type: text/html" -s "Stock Quotes `date +%c`" Assuming $PORTFOLIO_SCRIPT outputs to stdout (it should). -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list