Problems during the generation of email messages to Outlook
Hi all,
I'm using the echo command to generate a log file (text file) with messages produced by a script. This file is then sent to the Outlook via the linux mail command. When I open the Outlook message, I see that after a number of lines, the next lines are writen without the new line caracter (\n). Below is an example of what happens. After the message "... acervo19_b_domingo.tgz (home/bvssp/lildb-ht-dol-files-arouca.txt) - ok" , everything goes wrong. I've tried printf "\n ...", but the same thing happens. Is it a problem betwen the linux mail command and Outlook ? ... acervo17_b_domingo.tgz (home/bvssp/htdocs) - ok ... acervo18_b_domingo.tgz (home/bvssp/install) - ok ... acervo19_b_domingo.tgz (home/bvssp/lildb-ht-dol-files-arouca.txt) - ok ... acervo20_b_domingo.tgz (home/bvssp/lildb-ht-dol-files-bvssp.txt) - ok ... acervo21_b_domingo.tgz (home/bvssp/lildbi-dol-arouca.seq) - ok Regards, Augusto |
Try sending your output to a temporary file, replacing EOL chars and then sending it:
"output > tmpfile; unix2dos tmpfile && cat tmpfile | mail -s subject recipient-at-addr.ess && rm -f tmpfile" |
Quote:
|
All times are GMT -5. The time now is 04:05 PM. |