Results 1 to 1 of 1
Hi ,
I am trying the output of my program as an email . the output looks like
Table output
--------------------------------------------------------------------------
MMMM 05.5 P 16 -99.00 NULL
MMMM 2110-09-48 55 ...
- 09-14-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 1
Preserve Formatting in mail messages
Hi ,
I am trying the output of my program as an email . the output looks like
Table output
--------------------------------------------------------------------------
MMMM 05.5 P 16 -99.00 NULL
MMMM 2110-09-48 55 P 12 -99.00 NULL
MMMM 2110-09-48 50 P 10 -100.00 NULL
MMMM 2110-09-48 55 P 11 -100.00 NULL
Basically everything aligned on right side of column wise when I output to a file. However when I use (this editor is messing up formating)
> cat tableoutput.txt | mail -s "Table Output" email address
The message I receive is
Table output
--------------------------------------------------------------------------
MMMM 05.5 P 16 -99.00 NULL
MMMM 2110-09-48 55 P 12 -99.00 NULL
MMMM 2110-09-48 50 P 10 -100.00 NULL
MMMM 2110-09-48 55 P 11 -100.00 NULL
Is there a what ensure that the above format is preserved. (this is the format in which i receive the email)
Thank you for your help,
IlaLast edited by ila; 09-14-2010 at 09:57 PM. Reason: Editor did not preserve spaces


Reply With Quote