Path: utzoo!utgpu!watserv1!watmath!att!bellcore!rutgers!uwm.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!janus.Berkeley.EDU!lauther From: lauther@janus.Berkeley.EDU (Ulrich Lauther) Newsgroups: comp.unix.xenix Subject: Re: Problems installing a LaserWriter II Message-ID: <37084@ucbvax.BERKELEY.EDU> Date: 16 Jun 90 18:24:10 GMT References: <37082@ucbvax.BERKELEY.EDU> <267A4425.A45@marob.masa.com> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: lauther@janus.berkeley.edu (Ulrich Lauther) Organization: Siemens, currently UCB Lines: 43 In article <267A4425.A45@marob.masa.com> daveh@marob.masa.com (Dave Hammond) writes: >In article <37082@ucbvax.BERKELEY.EDU> lauther@janus.berkeley.edu (Ulrich Lauther) writes: >> >>"cat file /dev/tty1a" >>prints the file, so I know the connections and switches are correct. >> >>"lpr file" >>lets the printer blink, so I know that the spool-system >>accesses the correct port, BUT IT DOES NOT PRINT ANYTHING! > >We have LaserJet printers which require the lp interface script >to do an stty ixon ixoff -- might this be the problem? > No, that seems NOT to be the problem. This is my lp interface script: : printer=`basename $0` request=$1 name=$2 title=$3 copies=$4 options=$5 shift; shift; shift; shift; shift stty 9600 ixon ixoff 0<&1 # send the file(s) to the standard out $copies times echo LaserWriter starting > /dev/console while [ "$copies" -gt 0 ] do for file do cat "$file" 2>&1 done copies=`expr $copies - 1` done echo LaserWriter done > /dev/console exit 0 BTW, the file that I am trying to print has ^D as its last character. ----------------------------------------------------------------- Ulrich Lauther Internet: lauther@janus.berkeley.edu Siemens / UCB ph: +1 415 642 3338 fax: 642 2739 +1 415 658 8529 home