Re: unix2dos did NOT fix line wrap problem on PC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thursday 28 August 2008 18:05:26 Stephen Moccio wrote:
> On the pc - open the file using wordpad.
>
> -----Original Message-----
> From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On
> Behalf Of Jeff
> Sent: Thursday, August 28, 2008 11:13 AM
> To: CentOS mailing list
> Subject: Re:  unix2dos did NOT fix line wrap problem on PC
>
> On Thu, Aug 28, 2008 at 9:57 AM, mcclnx mcc <mcclnx@xxxxxxxxxxxx> 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@xxxxxxxxx  </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.

Do a google search for "pfe.exe" (Programmers File Editor). Its a freeware 
windoz text editor that handles linux / Unix or dos / windows end of line 
characters with out any problems. If you can't find it e mail me off list and 
I can attach it to my reply, its only a 2/3mb file.
Regards John

-- 
Guy Fawkes, the only man to enter the house's of Parliament
with honest intentions, (he was going to blow them up!)
Registered Linux user number 414240
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux