Subject: | |
From: | |
Reply To: | |
Date: | Thu, 23 Aug 2001 08:13:53 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Lars is right - there are no "CR's" in the file on the HP3000.
I use "translate" with smbclient to strip off CR's (and leave only LF's)
when I fetch files from eth Windows world to the HP3000, but I don't think
there is a command to add them back....
Neil
-----Original Message-----
From: Lars Appel [mailto:[log in to unmask]]
Sent: 22 August 2001 11:12
To: [log in to unmask]
Subject: Re: More SAMBA Questions
> Is there a parameter in Samba which will cause the CR (carriage
> return) to NOT be stripped from the file upon transfer?
Sorry for breaking the Windows view of the world, but on the 3000
there is no CR in the text file that could be stripped by Samba,
even if it would not perform a binary transfer. In fact, the POSIX
layer (well, the type manager in the file system) on MPE/iX is kind
enough to add LF characters to make the MPE file look like a text
file would look like in the Unix world...
Someone once mentioned that the "translate" feature of smbclient
could be used to transfer text files with CR added "on the fly",
but I never found the time to try that myself.
Another potential option might be to add the CR on the 3000 side
as part of the extraction job, for example by using AWK. Quoting
an older HP3000-L thread (thanks to google newsgroup search ;-)
:xeq /bin/awk " '{print $0 ""\r""}' INFILE > OUTFILE "
Hope this helps. Your mileage may vary.
Lars.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|