The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mail command FeNiCrC_Neil UNIX for Dummies Questions & Answers 2 08-31-2007 02:12 PM
mail command on sco box benefactr UNIX for Advanced & Expert Users 0 08-17-2007 06:29 PM
mail command habuzahra UNIX for Dummies Questions & Answers 4 01-08-2007 09:00 AM
Help with mail command Rohini Vijay Shell Programming and Scripting 7 08-01-2006 05:42 AM
mail command garric Shell Programming and Scripting 4 04-24-2006 05:09 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-14-2008
hern14 hern14 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 22
Help with mail command

Hello,

I am trying to send a .txt file with the mail command as follows:

uuencode myfile.txt myfile.txt | mail -s "Testing" myemail@somewhere.com

I receive the file, but when I try to open it, I get the results printed in one line and when there is a new line, the new line character gets printed into the file. So we want to send it as ASCII and not Binary.

Any suggestions??

THANKS!
  #2 (permalink)  
Old 05-14-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
This is likely not an issue of ASCII vs binary, but of line ending conventions. If you are opening it on a Windows or Mac computer, use an editor which can convert Unix line feeds to the local line ending convention. Or convert the file to something suitable before sending it (unix2dos would be pretty canonical I guess).
  #3 (permalink)  
Old 05-15-2008
hern14 hern14 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 22
Thanks era!!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0