[comp.sys.apollo] question on lpd/lpr

bshaw@vlsic2.ti.com (Bob Shaw) (11/27/90)

.................. Apollo  lpd / lpr questions ...........

I am trying to add to our existing print server the 
lpr / lpd capability.  Basically, I have several machines
(Suns, Decs, Convex etc) that need to print to my 
Apollo print server.  I am playing with printcap files
and everthing is fine from the other machines.  

1.	My problem is on the  print server itself.  I am using the
	:pc option in my Apollo printcap file and have been unable
	to have the file name print out on the output pages.  The
	filename is ALWAYS standard_input.  The date and page # 
	is ok.

                 Banner pages
      
2.	If I use the  cols 2 option , and use page #'s , page 1 
        starts on the banner page and not on the actual output.

3.      If I use postscript ( - trans option ) I can't get the 
        banner page to print the users name or the file name.  It
        simply prints  Daemon  and Standard_input.

4.      Is any filter  source code available that will enable one
        to modify etc for customized banner pages and/or to help
        solve any of the above questions/problems.

        I have never been able to get a bitmap file to print
        using the printcap/lpr method, even though the prf
        method works fine manually.

        I've read the man pages on this but just wondering if there  
        are any useful books written on this.

        I am using a DN4500 and os 10.3 and a TI 2115 omni laser 
        printer.

        Any comments / suggestions will be GREATLY appreciated.

        Thanks in advance.....

        Bob Shaw  Texas Instruments   Dallas
        bshaw@vlsic2.csc.ti.com
        

obrennan@CC3.CC.UMR.EDU (obrennan) (11/28/90)

	.................. Apollo  lpd / lpr questions ...........
	
	I am trying to add to our existing print server the 
	lpr / lpd capability.  Basically, I have several machines
	(Suns, Decs, Convex etc) that need to print to my 
	Apollo print server.  I am playing with printcap files
	and everthing is fine from the other machines.  
	
	1.	My problem is on the  print server itself.  I am using the
		:pc option in my Apollo printcap file and have been unable
		to have the file name print out on the output pages.  The
		filename is ALWAYS standard_input.  The date and page # 
		is ok.
	
	                 Banner pages
	      
	2.	If I use the  cols 2 option , and use page #'s , page 1 
	        starts on the banner page and not on the actual output.
	
	3.      If I use postscript ( - trans option ) I can't get the 
	        banner page to print the users name or the file name.  It
	        simply prints  Daemon  and Standard_input.
	
	4.      Is any filter  source code available that will enable one
	        to modify etc for customized banner pages and/or to help
	        solve any of the above questions/problems.
	
	        I have never been able to get a bitmap file to print
	        using the printcap/lpr method, even though the prf
	        method works fine manually.
	
	        I've read the man pages on this but just wondering if there  
	        are any useful books written on this.
	
	        I am using a DN4500 and os 10.3 and a TI 2115 omni laser 
	        printer.
	
	        Any comments / suggestions will be GREATLY appreciated.
	
	        Thanks in advance.....
	
	        Bob Shaw  Texas Instruments   Dallas
	        bshaw@vlsic2.csc.ti.com


----------------------------------------------------------------------------------
We have a postscript printer connected to an Apollo, running the Apollo print
services. What you need to do is add the :if=program in the printcap file. The
print file will be sent as standard input to the program and the print server
will then process whatever you send to standard output. We wrote a shell script
as the program and wrote out a postscript banner page (standard out) then sent
whatever was standard in using CAT (no path, will pick up std in); all data
went to standard out. Also, the :if (input filter) will send as arguments to the
program the remote system and remote user name so you will need to parse that
for the information you need (I used echo $* to determine the parms). 

One important note: we are going to change the program to be a C program because
we have problems with the cntrl/d's in the Postscript files produced by Wordperfect.
Apparentally, the shell is picking up the cntrl/d and sending an EOF to standard output;
why it didn't truncate it before CAT processed it is a mystery to me.

Also, we sent the file with -banner off since we built the Postscript banner for remote
print jobs. Apollo's PRF automatically determines the type of file and processes it
through the appropriate filters. Unix's print server sends the data directly to the
printer unless you specify a filter (which I assume could determine the file type and
take appropriate action).

Hope this helps...


Gerry O'Brennan
Programmer/Analyst II
Computing Services
University of Missouri - Rolla
------------------------------
obrennan@apollo.cc.umr.edu
c0022@umrvmb.umr.edu          
------------------------------