Thanks Duncan for the quick response.
The problem we're having is related to files being created on Win95 and
copied to Unix rather than it being a printing issue. What we need is a
facility to take any text files saved on a Samba drive and convert them
automatically. At present we can use dtox (Sco Os/5) or dostounix (Other
variants of Unix) but we would like to automate this process. Too see the
problem create a file using notepad and save it to the unix drive. Then
using vi open the file and the carriage-return line feeds are all over
the file. We want to replace these automatically. Being new users to
samba we have searched everywhere without too much luck.
Thanks in advance, if you solve this I'll send you a pint of Guinness.
Mark.
------------------------
Mark Brazil
mark@quest.ie
----------
From: Duncan Hill
Sent: Wednesday, July 30, 1997 7:01 AM
To: Mark Brazil - In Quest
Cc: Multiple recipients of list
Subject: Re: FW: Question about carraige-return/line feed
On Wed, 30 Jul 1997, Mark Brazil - In Quest wrote:
> works well, in fact its very fast. There is only one problem. When
files> are created on it from Windows 95 you get a ^M character at the end of
> each line.
The simple solution is to make the print command a filtering script.
I have one somewhere that will turn CRLF into CR, but can't think for
the life of where..basically you need:
stripper < %s > %s.prt ; lp <options> %s.prt
Or something similar should work.
---
Duncan Hill
--------------------------------------------------------------------------
----
Cogito ergo sum
Email: dhill@sunbeach.net : dhill@bajan.org
http://www.bajan.org : http://www.cropover.com
--------------------------------------------------------------------------
----