Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a attachment text file that send from unix to exchange server via mail.pl , I read this attachment file in outlook express and found that the data in the file have changed ( different from the original file that I read in unix server ) , I also tried if I gzip this attachment file in unix server , then send it out ( via the same method ) , it do not have the problem , the file is exactly what is it in unix ,
I tried ux2dos , but it is still not work ,
can advise what is the reason of the problem , how to solve it ? thx
I have a attachment text file that send from unix to exchange server via mail.pl , I read this attachment file in outlook express and found that the data in the file have changed ( different from the original file that I read in unix server ) , I also tried if I gzip this attachment file in unix server , then send it out ( via the same method ) , it do not have the problem , the file is exactly what is it in unix ,
I tried ux2dos , but it is still not work ,
can advise what is the reason of the problem , how to solve it ? thx
Read the replies in the other TWO threads you posted, about this same issue. Rewording it slightly doesn't mean it's a different question. You don't post the mail.pl program, but again, it's nothing to do with sendmail/postfix, but IN WINDOWS.
Windows is doing SOMETHING with the file. Since it works if it's zipped, that means that Linux isn't doing any sort of bad things to the file..otherwise, the ZIP would be corrupted...and it's not.
Read the replies in the other TWO threads you posted, about this same issue. Rewording it slightly doesn't mean it's a different question. You don't post the mail.pl program, but again, it's nothing to do with sendmail/postfix, but IN WINDOWS.
Windows is doing SOMETHING with the file. Since it works if it's zipped, that means that Linux isn't doing any sort of bad things to the file..otherwise, the ZIP would be corrupted...and it's not.
thx reply ,
Yes , this is the same case , but the first post is too complicate to check , and I have already test somthing to narrow down the problem , this post should be more easy to understand and find out the reason .
Also if it works when you gzipped it, then what's wrong with that?
Thx
I tried to use the below command to convert it , it seems complete to convert it , but I try to read this file in mail , but still have problem .
#unix2dos my_file.txt
unix2dos my_file.txt
unix2dos: converting file my_file.txt to DOS format ...
In short , is it the problem of binary / acsii format , if the file changed to binary before send out , will it solve the problem ? if yes , how to do it ? thx
I just found a problem , the column 151 can not be a full stop "." , if it is a full stop , it will disapear after send out via mail.pl , can advise what is wrong ? thx
You need to run tcpdump/wireshark and find out if the '.' is being removed before or after leaving Linux. Personally, I'd go with other's guesses, ie I'd be very surprised if Linux is doing this, but first we need proof not guesses.
I'd also suggest getting the Mods to merge your qns....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.