Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!alberta!alberta!cpsc.ucalgary.ca!ajfcal!blender!herb From: herb@blender.uucp (Herb Peyerl) Newsgroups: comp.sys.apollo Subject: accessing user_db for prsvr driver: HELP. Message-ID: <1991Jan16.114441.i@> Date: 16 Jan 91 11:44:41 GMT Organization: Home for the Bewildered Lines: 51 I'm involved in writing a driver for prsvr that will re-route prf jobs to a remote TCP node running lpd. I've got it pretty much working however there's a few pieces to the puzzle missing. In the "Printing in the Domain/OS environment" manual there is mention of a number of databases that are accessable by drivers and filters. 2 of these databases are described in the manual (Interface database and the job database) but there is mention of the user database which contains user specified items however this database isn't described so consequently I don't know what fields are available and consequently don't know how to access them. Specifically, I need the following bits of information: the name of the user who submitted the job the node the job was submitted from. the filename being printed. and the exact size of the file. I require the first three for submission to the lpd daemon so that the banner page contains appropriate information. However, I need the exact size of the file because the lpd on the remote host needs to know how many bytes to read from the network. Without an explicit size, lpd just keeps waiting until the arbitrarily specified (hardcoded by me temporarily) number of bytes arrives. I had thought of reading from the stream into malloc'ed memory or creating a temporary file, however, this is a big waste of performance and it's also not uncommon for some of our postscript files to approach 5 or 6 MB in size. (A lot of the jobs for this printer will come from Mentor Applications). So, can anyone help me out here? Specifically someone at Apollo or even someone else who's done this. If you already have a prsvr driver that will submit jobs to a remote 'lpd' then I'd appreciate having a look at that. If no one has it and there's enough interest in it (I can see a lot of uses for this sort of thing) then I'll gladly post the source when I get it running. (assuming I can get the thing running properly.) Anyhow, thanx in advance to anyone who can help me out here. This seems to be the sort of thing that David Krowitz would have done so maybe he can help me out. -- -------------------------------------------------------------------------- UUCP: herb@blender.UUCP || #define Janitor Administrator ICBM: 51 03 N / 114 03 W || Apollo System_Janitor, Novatel Communications "I spilled spot remover on my dog and now he's gone..."