home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!jabaru.cec.edu.au!csource!gateway
- From: Bruce.Weinel@p1.f456.n632.z3.fidonet.org (Bruce Weinel)
- Newsgroups: comp.protocols.nfs
- Subject: SUN PC-NFS Printing problem.
- Message-ID: <725219481.AA05059@csource.oz.au>
- Date: Mon, 21 Dec 1992 07:08:12
- Sender: gateway@csource.oz.au
- Lines: 42
-
- johnm@bowen.cc.utas.edu.au was heard in "The Pit" saying to All
-
- ju> From: johnm@bowen.cc.utas.edu.au (John Miezitis)
- ju> Organization: University of Tasmania, Australia.
- ju>
- ju> One of my PC-NFS users here is having a problem printing
- ju> directly to a redirected printer port...
- ...
- ju> If he net prints the file everything works.
- ju>
- ju> I tried the following:-
- ju>
- ju> copy xxx.ps u: file appears intact
- ju>
- ju> copy xxx.ps lpt2: Lost data, file size approx 3100 bytes.
- ju>
- ju> Printing directly to lpt2: from within application Lost
- ju> data, file size now only approx 1100 bytes
-
- The most likely cause is DOS sensitivity to 1Ah (^Z) in sequential text files.
- The DOS 'copy' command to a block device (u:) bases end-of-file on the size
- stored in the directory, not file content. However, 'copy' to a sequential
- device
- (lpt2:) senses end-of-file when it encounters 1Ah (^Z). I would expect that
- the 3543rd byte is such an end-of-file marker. I would also expect that the
- behavior of varying file sizes is due to physical and logical block sizes
- relative
- to sensing the end-of-file. On the sequential copy 3100 is roughly 3543 - 512
- (physical block size). From the application 1100 is roughly 3543 - (2048 -
- 512)
- or a cluster minus the first sector.
-
- This problem can usually be avoided by using ASCII Encapsulated PostScript
- (EPS)
- format for images; rather than binary EPS. It can also be circumvented by
- software
- that knows the data stream may contain binary and therefore reads the file as
- a blocked device with one byte records; as I assume net print does.
-
- I-{>
-
- * Origin: Howls from "The Pit" BBS (03) 321-3295 (3:632/456.1@fidonet)
-