Link to home
Start Free TrialLog in
Avatar of lehan
lehan

asked on

Ctrl-M characters embedded in Windows text file sent to Solaris running Samba

I have Samba 3.02 installed on a Solaris 9 server. Windows users can access the Solaris shares fine. The problem we are having is that when text files are created on the Solaris shares using some application (Synergy as an example), Ctrl-M characters are embedded in the created text file.
It's obviously a dos2unix conversion issue but is there an option or setting in Samba to force the dos2unix conversion?

any help would be appreciated.
ASKER CERTIFIED SOLUTION
Avatar of bpeterse
bpeterse
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lehan
lehan

ASKER

It's a code build process by our developers - after the build files are created on the Samba share from Synergy client on Windows, they need to be zipped up on UNIX and then sent to clients. The ^M characters then appear in the zipped files.

So it would be great if Samba can automate the dos2unix conversion prior to the zip. however, the more I research this, the more it appears that Samba cannot do it.

Any other ideas? thanks for the reply so far...
You could write the dos2unix conversion into your custom code - should be a very easy thing to accomplish.
Avatar of lehan

ASKER

That's what we are looking into. I did also check the settings on the application (Synergy) but nothing jumps out as the fix. So I will probably raise a ticket with their support - they maybe able to offer a solution.

Feel free to offer any other ideas. I will wait for another day or so then distribute the points if i get no new answers. thanks guys.