Im pretty sure jobname is passed to a printer filter as -J as an argument.

Travis
         >Hi,
         >
         >
         >I would like to know if there is a way to obtain the name of the 
         >document printed. I mean, I know that each document printed is assign
         >ed 
         >to a job (process) but I would like to know the original name of the 
         >document printed.
         >
         >What I intend to do is to log those names in a database to know who h
         >as 
         >printed each document. (By the way, every printer will be defined on 
         >my 
         >linux server and all printing jobs will be associated to a spool on t
         >his 
         >server) In that way, I will know how many people will have printed a 
         >specific document and so on.
         >
         >If you think there is another way to distinguish a document from anot
         >her 
         >by using another checking method just feel free to tell me, I will 
         >greatly welcome your idea.
         >
         >
         >Thanks in advance for your replies,
         >
         >Jonny
         >
         >-- 
         >
         >Jonny Berthiaume
         >Programmeur
         >G�linas & Nadeau Informatique (GNI) Inc.
         >T�l: (418) 864-7721
         >Fax: (418) 263-3147
         >[EMAIL PROTECTED]
         >
         >
         >---------------------------------------------------------------------
         >--------
         >YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
         >The address you post from MUST be your subscription address
         >
         >If you need help, send email to [EMAIL PROTECTED] (or lprng-request
         >s
         >or lprng-digest-requests) with the word 'help' in the body.  For the 
         >impatient,
         >to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
         >com
         >with:                           | example:
         >subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
         >.org
         >unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]
         >
         >If you have major problems,  send email to [EMAIL PROTECTED] with t
         >he word
         >LPRNGLIST in the SUBJECT line.
         >---------------------------------------------------------------------
         >--------
         >

-----------------------------------------------------------------------
Travis Freeland, Systems Section Leader, Information Technology Services Divisi
on
Deakin University, Waterfront Campus, Victoria 3217 Australia.
Phone: 03 xxxx xxxx International: +61 3 xxxx xxxx
Fax: 03 xxxx xxxx    International: +61 3 xxxx xxxx
E-mail:   [EMAIL PROTECTED]
Website:   http://www.deakin.edu.au
Deakin University CRICOS Provider Code 00113B (Vic), 02414F (NSW)

Important Notice: The contents of this email transmission, including any attach
ments, are intended solely for the named addressee and are confidential; any un
authorized use, reproduction or storage of the contents and any attachments is 
expressly prohibited. If you have received this transmission in error, please d
elete it and any attachments from your system immediately and advise the sender
 by return email or telephone. Deakin University does not warrant that this ema
il and any attachments are error or virus free.
------------------------------------------------------------------------

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to