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 know there are print quota solutuions out there that will fit in nicely with cups and samba, but I need to do this a different way due to some custom things we need to do) 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? Many thanks, Ian. -- Ian Taylor Technical Support Internet Assist Ltd Tel: +44 (0)1621 840014 Fax : +44 (0)1621 853 959 Web: http://www.i-a.co.uk Email : ian@i-a.co.uk
-----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-----