[CentOS] unix2dos did NOT fix line wrap problem on PC

Thu Aug 28 17:05:26 UTC 2008
Stephen Moccio <smoccio at ureachtech.com>

On the pc - open the file using wordpad.

-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf
Of Jeff
Sent: Thursday, August 28, 2008 11:13 AM
To: CentOS mailing list
Subject: Re: [CentOS] unix2dos did NOT fix line wrap problem on PC

On Thu, Aug 28, 2008 at 9:57 AM, mcclnx mcc <mcclnx at yahoo.com.tw> wrote:
> I have log files will mail from LINUX to my PC (MS exchange and outlook).
>
> When I look the E-MAIL, the log file line is unwrap.  My script did use
> "unix2dos" to convert format.  anyone know why?
>
>
> ======   script   =============
>
> tail -30 /var/log/messages > /tmp/diskmsg.log
> unix2dos /tmp/diskmsg.log
> mail  -s "Check log" dba101 at yahoo.com  </tmp/diskmsg.log

unix2dos has nothing to do with the length of a line. It only changes
the line-end characters that occur when a new line is specifically
indicated (i.e. at the end of each log entry).

Wrapping is entirely a function of the program in which you are
viewing the text. So tweak your Outlook to wrap or not-wrap as you see
fit.

-- 
Jeff
_______________________________________________
CentOS mailing list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos

No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.6.10/1638 - Release Date: 8/27/2008
7:06 PM

No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.6.10/1638 - Release Date: 8/27/2008
7:06 PM