Problems installing a LaserWriter II

Ulrich Lauther lauther at janus.Berkeley.EDU
Sun Jun 17 04:24:10 AEST 1990


In article <267A4425.A45 at marob.masa.com> daveh at marob.masa.com (Dave Hammond) writes:
>In article <37082 at ucbvax.BERKELEY.EDU> lauther at 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 at janus.berkeley.edu
Siemens / UCB                ph: +1 415 642 3338 fax: 642 2739
				 +1 415 658 8529 home



More information about the Comp.unix.xenix mailing list