Solved

Transfer ASCII file in Samba server problem.

Posted on 1998-06-02
3
522 Views
Last Modified: 2013-12-15
I want to transfer some file from WinNT to a Samba server by drag and drop.  However when I view the file from the Samba server by using vi, it shows up ^M at the end of the sentence.  Can anybody tell me if there are any resources or what I should do in the Samba configuration in order to get rid of this ^M problem.
0
Comment
Question by:andrewma
3 Comments
 
LVL 4

Expert Comment

by:feenix
Comment Utility
In the MS-world the lines have both CR and LF at the end. In UNIX there is only LF character so vi shows the CR as ^M. You can use either dos2unix and unix2dos utilities to convert CR+LF<->LF or use 'tr -d \r < file.txt' to remove the ^M characters.

0
 

Author Comment

by:andrewma
Comment Utility
Maybe I did not make myself clear on the question.  I want to see if there is anyway to make it in the Samba configuration file instead of converting the explicitly in the UNIX prompt.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
Comment Utility
No, samba can't do it.
Samba does not know anything about file-contens, it just implements the SMB protocol, that's all.

You can try to program something using samba's preexec and postexec entries.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now