Need username printed at top of page
Patrick Young
pyoung at judgememorial.com
Wed Mar 21 09:30:44 PDT 2007
Oooo that helps a lot. I think I'm all set now. Thank you!
--Patrick
> Patrick Young wrote:
>
> > [...]
> >
> >
> > That makes sense about the job ID. I think having both the username and job name on the page give me enough information to lookup the job info in the CUPS web interface if I ever need to. Just out of curiosity, would a time-/datestamp also be difficult due to sending to a remote server? That's no big deal. This gives me the bulk of what I was after. And it's centered, too! :-)
> >
> > Thank you for all your help, Helge!!!
> > --Patrick
>
> If you look inti the pstops.txt (which is at the same site as the source)
> you'll see what is passed to the PostScript job.
>
> Here is an example:
>
> ---snip---
> userdict/CUPS_ENV_OPT
> << % Environment variables and command line options
> /CHARSET (utf-8)
> /CONTENT_TYPE (application/mostscript)
> /DEVICE_URI (file:/var/tmp/test.prn)
> /LANG (en_US)
> /PRINTER (test_to_file)
> /SOFTWARE (CUPS/1.1)
> /TZ (:CET)
> /USER (root)
> /CURRENT_DATE (Saturday, 17. March 2007 17:44)
> /NOWDATE (2007-03-17 076)
> /NOWTIME (17:44:03)
> /JCLResolution (600dpi)
> /JCLFastRes true
> /JCLEconomode false
> /supress-setup-features-from-ppd true
> /job-originating-user-name (frame)
> /job-name (Microsoft Word - 1604563.doc)
> >> put
> ---snip---
> You see some of tne environment variables (don't be afraid
> abou the USER - it is the user name the scheduler runs under),
> CURRENT_DATE is (or should be) in the current locale's format,
> NOWDATE and NOWTIME are in ISO format. What follows are alle
> the job options from the command line.
>
> Hope this helps
>
> Helge
>
> --
> Helge Blischke
> Softwareentwicklung
>
> H.Blischke at acm.org
More information about the cups
mailing list