Path: utzoo!attcan!uunet!mailrus!ncar!boulder!mre From: mre@boulder.colorado.edu (Marcus O. Ertle) Newsgroups: comp.unix.i386 Subject: Re: How: Remote print spooling (ISC 2.0.2 -> BDS 4.3)? Message-ID: <22014@boulder.Colorado.EDU> Date: 7 Jun 90 22:28:14 GMT Expires: 7 Jul 90 06:00:00 GMT References: <7625@tekgvs.LABS.TEK.COM> Sender: news@boulder.Colorado.EDU Reply-To: mre@ngdc2.UUCP (Marcus O. Ertle) Distribution: na Organization: National Geophysical Data Center, Boulder, Colorado Lines: 44 In article <7625@tekgvs.LABS.TEK.COM> keithe@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