Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    ila
    ila is offline
    Just 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,
    Ila
    Last edited by ila; 09-14-2010 at 09:57 PM. Reason: Editor did not preserve spaces

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •