[cups.general] Sharp AR-M620N with user account numbers.

Andreas pocno9 at gmail.com
Wed Jan 30 10:25:03 PST 2008


Patrick Rady <prady at ...> writes:

> 
> I am trying to use a Sharp AR-M620N in a multitenant environment.
Users *must* enter their account number
> with print jobs. Windows and Mac users enter their code into a dialog box
under printer preferences. The
> driver creates a PS or PCL file with some PJL commands at the start,
including one to control accounting
> details on the photocopier:
> 
> @PJL SET ACCOUNTNUMBER="01253"
> 
> How can I get CUPS 1.3.2 to properly send this account number to the
printer? Without it all I get is a notice
> page stating "Printing by unregistered account code is disabled by
key operator programs."
> 
> I'm using CUPS 1.3.2 on Ubuntu 7.04.
> 
> This has been a real showstopper for us, preventing a smooth migration
to Linux.
> 
> Thanks,
> 
> Patrick Rady
> 


You can set PJL options in the PPD file. On my Fedora installation and
for a Sharp MX-2700N this can be found e.g. in

/usr/share/foomatic/db/source/PPD/Sharp/Sharp-MX-2700N-ps.ppd.gz

You can add the following lines (of course, uncompress and recompress
this file):

*% ====================================================================
*% Base JCL key code option 
*JCLOpenUI JCLPasscode/Key Code: PickOne
*OrderDependency: 10 JCLSetup *JCLPasscode
*DefaultJCLPasscode: None
*JCLPasscode None/No Code: ""
*JCLPasscode 12345: "@PJL SET ACCOUNTNUMBER = 12345<0A>"
*JCLCloseUI: *JCLPasscode
*% ====================================================================

I am, however, not sure if ACCOUNTNUMBER is the right option. There are
other options like USERID etc as well... This is what confuses me!

The PPD file can then be selected for the printer installation in CUPS.
After installation, you will see a new option "Key code" in the "Set
printer options" section.

Best,
Andreas





More information about the cups mailing list