Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!yale!umich!sharkey!cfctech!norm From: norm@cfctech.cfc.com (Norman J. Meluch) Newsgroups: comp.sys.att Subject: Re: Printing through UUCP Keywords: 3B2, UUCP, Printing Message-ID: <1990Dec18.164014.25253@cfctech.cfc.com> Date: 18 Dec 90 16:40:14 GMT References: <1990Dec10.164131.5403@DMI.USherb.CA> <131@dlss2.UUCP> <11702@ccncsu.ColoState.EDU> <164@genco.bungi.com> Organization: Chrysler Financial Corp., Southfield, MI Lines: 48 In article <11702@ccncsu.ColoState.EDU> hallt@handel.CS.ColoState.Edu (Tim C. Hall) writes: {T} Got a question: {T} We have two AT&T 3B2 hosts running UUCP. One has a printer attached, {T} and we wish to allow the other host to send print jobs remotely via UUCP. {T} How is this best achieved? In response rad@genco.bungi.com (Bob Daniel) writes: {B} The concept is simple. Just make an interface that redirects {B} the output to a file and then uucp the file to the destination. Then, {B} do a uux on the remote machine. {T} Any comments, or, better yet, experiences {T} with accomplishing the above feat would be highly appreciated. No sweat. As Bob pointed out it really is simple to do. We implemented the same thing here on our Chrysler 3B2s. Of course, there is a lot of fluff that you can add to make things work "better" but the concept was: just copy the file that the user wants to print, and then do a remote uux of the command lp, then remove the copy. The heart and soul of our script to do this looks like this: # # Print the file on remote computer # ${CAT} ${SPOOLNAME} | \ ${UUX} - ${MACHINE}!"${LPCMD} ${REMOTEP} ${OPTIONS}" & Of course our script fills in all of the variable names as needed. Like Also note that the "-" as the second parm of uux is real important. One of the biggest troubles that we had doing this was realizing that the options that are set *really need* to be passed in the uux. Hence laser jets will not function properly if you do not `lp -d -o"stty=-opost"` and if you do not pass that -opost you're in trouble. Good luck. - Norm. -- |~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Norman J. Meluch ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | Mail: norm@cfctech.cfc.com Fax:(313)948-4975 Voice:(313)948-4809 | | Note: The opinions expressed here are in no way to be confused with valid | |_______ideas or corporate policy.____________________________________________|