How: Remote print spooling (ISC 2.0.2 -> BDS 4.3)?

Marcus O. Ertle mre at boulder.colorado.edu
Fri Jun 8 08:28:14 AEST 1990


In article <7625 at tekgvs.LABS.TEK.COM> keithe at tekgvs.LABS.TEK.COM (Keith Ericson) writes:
>... I need to
>get my ISC 2.0.2 system to be able to use a networked (TCP/IP, NFS) BSD4.3
>machine (VAX-11/785) for its attached printer devices.
>
>kEITHe
>
What follows is a quick-and-dirty csh-script that suits my purposes.  I have
this in my $home/bin directory.  ps is a (second) printer on the BSD-side.

]	#!/bin/csh
]	#	lpr (mre)
]	#
]	#	This script sends a file to the [BSD] line printer.
]	#	Marc Ertle
]	#	Mon Mar 12 1990
]	
]	if ($#argv == 0 ) then
]		echo "Error: usage is: lpr [-Pps] file"
]		exit (1)
]	endif
]	
]	set OPTIONS=" "
]	while ($#argv > 0)
]		if ($1 == "-Pps") then
]			set OPTIONS=($OPTIONS $1)
]		else
]			echo "Sending "$1" to [BSD]..."
]			/bin/cat $1 | \
]			/usr/ucb/rsh [BSD] /usr/ucb/lpr $OPTIONS -J $1 -C mre
]		endif
]		shift
]	end

Crude/slow - but it works for me.  You need printer privileges on the [BSD]
side.  A switch-case would be better for multiple lpr options.  My other
options are to have my file-names ($1) generate burst pages with those
names; and to have my machine-name (mre) on the burst page.

>PS - bonus points: does anyone recall what the acronym SPOOL stands for?
No idea.

Hope this helps.
- Marc



More information about the Comp.unix.i386 mailing list