RedHat7.3, kernel2.4.18-17.7.x, samba 2.2.6-1 from samba.org binary
download.
I have been given the task of logging everything which is printed on my
samba server. I thought I would test this out on a pdf printer I'm using
with samba. I enter the following line for the print command.
%u has printed %s from %m to %p at %T >> /tmp/smbprintlog &&
/usr/bin/printpdf %s
The result is similar to the following.
joe has printed smbprn.004603.Zqq9tZ from wilmsn44 to pdftech at
2003/11/09 12:26:03
The resulting log entry is very good with the exception of %s which gives
the spool file name and not the name of the actual file. Is there a method
to place the actual filename of the printjob into this type of log?
Regards,
Todd Jones
The information contained in this email (including any attachments) is
confidential, subject to copyright and for the use of the intended recipient
only. If you are not the intended recipient please delete this message after
notifying the sender. Unauthorised retention, alteration or distribution of this
email is forbidden and may be actionable.
Attachments are opened at your own risk and you are advised to scan incoming
email for viruses before opening any attached files. We give no guarantee that
any communication is virus-free and accept no responsibility for virus
contamination or other system loss or damage of any kind.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 todd.jones@weirslurry.com wrote: | Is there a method to place the actual filename | of the printjob into this type of log? See "%J' cheers, jerry - -- ~ ---------------------------------------------------------------------- ~ Hewlett-Packard ------------------------- http://www.hp.com ~ SAMBA Team ---------------------- http://www.samba.org ~ GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ~ "If we're adding to the noise, turn off this song" --Switchfoot (2003) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/sQh2IR7qMdg1EfYRAgyWAKCGnee3zPlnu/jHcqKJBrHCvSbTLACg0Bhx SGLUMdCP5aoD6R82hTpve4w=Dm8/ -----END PGP SIGNATURE-----
I am a technology coordinator for a school in Western Ohio, and I am
wanting to log print jobs to a file for review (ensuring students and
staff) are utilizing our equipment properly (At the request of my boss).
I found this in a thread..but I need some more information...or clearer
instructions. I just want to output this same informaton to a file for
each printer. Thanks in Advance. -Bodhi
------------------------------
I have been given the task of logging everything which is printed on my
samba server. I thought I would test this out on a pdf printer I'm using
with samba. I enter the following line for the print command.
%u has printed %s from %m to %p at %T >> /tmp/smbprintlog &&
/usr/bin/printpdf %s
The result is similar to the following.
joe has printed smbprn.004603.Zqq9tZ from wilmsn44 to pdftech at
2003/11/09 12:26:03
The resulting log entry is very good with the exception of %s which gives
the spool file name and not the name of the actual file. Is there a
method
to place the actual filename of the printjob into this type of log?
----------------------------------
-Bodhi
"It is fate to be born free,
It is a privilege to live free,
It is a responsibility to die free."