[Samba] custom print processing

Gerald (Jerry) Carter jerry at samba.org
Fri Jan 28 15:53:43 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ian Taylor wrote:
| Hi all,
|
| I've got a printserver working using cups/samba,ADS.  I'm
| want to pass  any jobs through a custom script which will
| do various things, including  checking user quotas from
| a custom database
|
| I've tried adding a line like 'print command = /path-to-script.pl`,
| to a  test perl script which just logs some things to a
| file (with the  intention of douing what I need with the user
| data then sending the job to lpr), but any print jobs are just sent
| to the printer without going through my script.
|
| Can anyone give me any clues on what I need to do to
| acheive this?

set 'printing = bsd' in the printer service in question.
The 'print command', et. al. is ignored when 'printing = cups'




cheers, jerry
=====================================================================
Alleviating the pain of Windows(tm)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"I never saved anything for the swim back."     Ethan Hawk in Gattaca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB+mAHIR7qMdg1EfYRAi/MAJ0bpFY+UzwnBxxngxCMxseLUJtPEQCdG0t1
jH86nvDSQiox/Lx/r/rM6S8=
=RPjn
-----END PGP SIGNATURE-----


More information about the samba mailing list