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

mcclnx mcc mcclnx at yahoo.com.tw
Thu Aug 28 14:57:46 UTC 2008


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


      _________________________________________________________________________________________________________
知識+ 的電玩高手全都在這裡! http://tw.knowledge.yahoo.com/dir/group_buzz?time=total&type=article&sid=396540003
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20080828/009dafd1/attachment.htm


More information about the CentOS mailing list