data collection done START TIME AND DATE : Wed Aug 3 13:15:06 GST 2016 No Issue Found while doing testing for data collection done on below URLs and ports
ideally i want to break each of them in different line with space
---------- Post updated at 04:36 PM ---------- Previous update was at 02:51 PM ----------
thanks.
will do that
---------- Post updated at 05:04 PM ---------- Previous update was at 04:36 PM ----------
What do you mean by "output I am getting"? There shouldn't be any output but a mail being sent. Are there any log files?
If that's just one single line occurring, chances are that all those echo ed messages and variables are overwriting each other because of <CR> characters in the stream. What OS/shell/editor are you using? Please post the output of od -ctx1 <your_output_line> ...
This particular page deals with an html tag <br>. I cannot tell if you want line breaks
or not but place this tag at the end of each line of text you want displayed in email - each tag makes a line break.
It is up to you to find and use the various tags you require to get a correct format in the email.
Going text only is simpler from the programming point of view. Using /usr/bin/mailx instead of sendmail is also an easier approach.