Note: please don't spam any of the e-mail addresses which you see here. Follow this link if you want some addresses to misuse.
From: David Chappell <David.Chappell@trincoll.edu> Date: 04 Mar 2003 16:10:29 -0500 Subject: Re: PPR: ppr insert JCL? There is an undocumented facility to do this. By this means you can have PPR run a program which you choose at various points while it is printing a job. Anything which the program sends to standard output will go to the printer. One of these points is while it is emitting the header comments. The program custom_hook_docutech is a program which we use here at Trinity. To enable it, edit the printer's configuration file (with a text editor) and add a line like this: CustomHook: 4 /usr/lib/ppr/lib/custom_hook_docutech The 4 indicates that it should be called during the printing of the document header comments. I am writing a section for the PPR Hacker's guide which will describe this facility, so have a look at http://ppr.trincoll.edu/docs/pprhack/pprhack.html in a few days to see how it is coming. On Wed, 2003-02-26 at 13:42, Bill Akers wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Anyone know of a way to get ppr to insert JCL into a postscript job? I am > trying to get around limitations in the OS X printer drivers. Apparently, OS > X does not pass JCL commands to the printer, even if you configure those > options. > > I am trying to get a Xerox Document Center 470 to hold a print job until a > user releases it at the front panel of the unit. > > A PC can do it. It includes the following code which ends up in the comments > file when ppr processes the job. > > %%XRXbegin > %%OID_ATT_JOB_OWNER "Administrator"; > %%OID_ATT_JOB_TYPE OID_VAL_JOB_TYPE_SECURE_PRINT; > %%OID_ATT_JOB_PASSWORD "AZUT"; > %%OID_ATT_START_SHEET OID_VAL_JOB_SHEET_FULL; > %%OID_ATT_JOB_NAME "http://www.msn.com/"; > %%OID_ATT_PRINT_QUALITY OID_VAL_PRINT_QUALITY_NORMAL; > %%OID_ATT_SNMP_CLIENT_NODE_ID "4.11.149.142.218.148.0.1.11.31329"; > %%XRXend > > I have been able to strip out unnecessary lines and find if I add the > following lines to the comment file of any ppr job, the DC470 will put the > job on hold until the end user releases it. > > %%XRXbegin > %%OID_ATT_JOB_TYPE OID_VAL_JOB_TYPE_SECURE_PRINT; > %%OID_ATT_JOB_PASSWORD ""; > %%OID_ATT_START_SHEET OID_VAL_JOB_SHEET_FULL; > %%OID_ATT_PRINT_QUALITY OID_VAL_PRINT_QUALITY_NORMAL; > %%XRXend > > The jobs are comming in from the Mac as postscript via lprsrv. I want to set > up one ppr printer that would always add the above code. I am running ppr > 1.44 on SuSE linux 7.3 for PPC. > > Maybe I am approaching this the wrong way. Any suggestions are very much > welcome. > > Thanks, > > - -- > Bill Akers > Director of Network Operations > UCLA Graduate School of Education and Information Studies > akers@ucla.edu > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > > iD8DBQE+XQqsHuBhMoY9pyIRAgvWAJ9C6UfMH0nvIlh7YtAYalFDt4ALtQCfbYA/ > vHIH4Co2rOS1SU7bHMpnI3Y= > =zX4N > -----END PGP SIGNATURE----- >