Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxc.cso.uiuc.edu!fthood!egray From: egray@fthood.UUCP Newsgroups: comp.unix.i386 Subject: Re: Configuring a Toshiba-p351 printer Message-ID: <11500003@fthood> Date: 23 Nov 89 01:38:53 GMT References: <1@<[430> Lines: 28 Nf-ID: #R:<[430:1:fthood:11500003:000:1248 Nf-From: fthood.UUCP!egray Nov 21 08:08:00 1989 > >The Toshiba then printed 132-columns of "X"'s and multiple page-ejects. > > That one got me, too. Your printer is set up to expect a CRLF combination > at the end of each line (which is the way DOS stores ascii files) but unix > stores only the LF character (the "newline" character). > > Since you'll probably want to continue to use the printer for DOS under > VP/ix, you should _not_ change the printer switches. Instead, locate the > file /usr/spool/lp/admins/lp/interfaces/dumb_1 (whew!) and make the > following change: > > cat "$file" 2>&1 > cat "$file" |utod 2>&1 > > utod is a filter that will convert LFs into CRLFs as the file is printed. > It stands for unix-to-dos. There's a dtou also, BTW. Ah yes, but there is a switch setting that works for both DOS and Unix. Switch 2 position 4 is the "carriage return on paper movement" function. It will translate a \n to \n\r for you. In, DOS a \n\r will come out \n\r\r, but that won't effect output. Emmet P. Gray US Army, HQ III Corps & Fort Hood ...!uunet!uiucuxc!fthood!egray Attn: AFZF-DE-ENV fthood!egray@uxc.cso.uiuc.edu Directorate of Engineering & Housing Environmental Management Office Fort Hood, TX 76544-5057