LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-21-2009, 10:54 PM   #1
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
Read file


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
 
Old 10-21-2009, 11:02 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by elainelaw View Post
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.

Last edited by TB0ne; 10-21-2009 at 11:04 PM.
 
Old 10-22-2009, 12:30 AM   #3
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by TB0ne View Post
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 .
 
Old 10-22-2009, 12:37 AM   #4
rkski
Member
 
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247

Rep: Reputation: 51
hi

Quote:
I tried ux2dos , but it is still not work ,
I hope thats a typo and you tried $unix2dos

Also if it works when you gzipped it, then what's wrong with that?
 
Old 10-22-2009, 01:22 AM   #5
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by rkski View Post
hi



I hope thats a typo and you tried $unix2dos

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
 
Old 10-22-2009, 09:54 PM   #6
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
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
 
Old 10-23-2009, 01:24 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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....
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Read Only File System? Can't read superblock! haughjd Linux - Software 4 01-15-2008 08:27 AM
web server (fedora core 5) became read-only file system after i upload a file nggs8411 Linux - Server 1 03-26-2007 09:23 AM
Java File Processing using Scanner; Can't get it to read file in running directory xemous Programming 2 09-26-2006 06:13 PM
how do I make a read-only file NOT read-only? robster Linux - General 1 02-17-2004 09:11 PM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration