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-0005.html>
mcclnx mcc 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?The lines should not be wrapped, why would you expect them to be? nate
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.logunix2dos 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
Possibly Parallel Threads
- hivexregedit doc - unix2dos command
- unix2dos automatic convertion
- CESA-2005:145-12: Low CentOS 2 i386 dos2unix and unix2dos bug fix update
- CEBA-2005-0722-001 Low CentOS 3 i386 elinks, dos2unix, unix2dos - updated
- Re: [PATCH v2v v2 1/2] v2v: windows: Add a helper function for installing Powershell firstboot scripts.