Caro anderson, Veja se isso resolve seu problema, verifique o código pois o e-mail pode ter quebrado alguma linha ...
#! /bin/bash ANO=`date +%Y` FAZENDA="http://www.fazenda.gov.br/confaz/confaz/atos/atos_pmpf/" BUSCA=`lynx -dump "${FAZENDA}${ANO}" | grep "${FAZENDA}" | tail +4 | cut -f2- -d.` for LISTA in ${BUSCA} do wget -d --no-remove-listing "${LISTA}" ARQUIVO=`basename "${LISTA}"` cat "${ARQUIVO}" | mail -a "Content-type: text/html;" -s "Atos Confaz" done Cordialmente, Marcelo Dias Vulgo Bahianeiro Em Ter, 2009-10-27 às 10:35 +0000, [email protected] escreveu: > 2.1. Baixar HTML e enviar email. > Enviado por: "Anderson Duarte" [email protected] > Data: Seg, 26 de Out de 2009 3:28 pm > ...
