Operating System - HP-UX
1834102 Members
2810 Online
110063 Solutions
New Discussion

Re: Samba - How to specify text, binary files etc

 
SOLVED
Go to solution

Samba - How to specify text, binary files etc

Hi,

I have configured samba. Programs having .cob, .pc etc are considered as binary files and i get ^M characters when i edit in vi.

How can I specify in samba, which files have to be considered as text/ascii files?

Please help.

Thanks in advance,
Kusuma
2 REPLIES 2
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Samba - How to specify text, binary files etc

Samba is binary files everywhere.

It's *where* you start vi that will decide what line endings it uses

If you start vi on HP-UX, having a file samba-mounted from a PC (HP is the client), than the file will probably have NL line endings

If you start vi (a clone) from Winblows (HP being the Samba/CiFS server), you will probably get CR line endings.

The better vi clones, like elvis, let you control what line endings to use on writing files. ':se writeeol=unix'

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn

Re: Samba - How to specify text, binary files etc

Thanks. I shall try it out.