Remote spooling; How do *you* submit files to a remote spooler?

John Mundt john at chinet.chi.il.us
Tue Feb 6 01:53:42 AEST 1990


In article <855 at pmday_2.Dayton.NCR.COM> steve at pmday_2.Dayton.NCR.COM (Steve Bridges) writes:
>In article <LARRY.90Jan31115055 at focsys.uucp> larry at focsys.uucp (Larry Williamson) writes:
>>
>> text deleted about remote spooling......
>
>We had a similiar problem here.  We are using Expanded Towernet (a 
>version of Xerox's XNS) to go between Towers.  One unfortunate problem
>is that the version of Towernet for our 32/800 supports remote
>printing to either an lpr printer or lp printer on any machine on
>the network through either nprint or lprint.  

I took an even lazier approach.  For each remote printer I wanted to
have people use, I created a dummy printer on the local machine.  Then,
I set up the actual printing script (in 
/usr/spool/lp/admins/lp/interfaces on SysV3.2)
and basically changed the line that actually cats the file to the
printer device with

for file in "$files"
do
	cat $file | uux -n - "${DEST_MACHINE}!lp $REMOTE_PRINTER_NAME -s"
done

You can do a lot of fancy stuff within the interfaces scripts, since
the print spooler really doesn't care what happens to the file once
it is shipped off to the script.  If you haven't done this often, use
the "dumb" printer model and go to work on it.  You could even have
the file compressed and uncompressed at the other end if large files
get printed.
-- 
---------------------
John Mundt   Teachers' Aide, Inc.  P.O. Box 1666  Highland Park, IL
john at admctr.chi.il.us *OR* fred at teacha.chi.il.us
(312) 998-5007 (Day voice) || -432-8860 (Answer Mach) && -432-5386 Modem  



More information about the Comp.unix.questions mailing list