Attempting to get the userid of user submitting a print job to application.
I have a software application that runs on linux that takes input data from a virtual printer, processes it, and generates output.
I am creating file output from this application and part of the filename is the user who submitted the print job.
I am using DATE(), TIME(), USERNAME() functions as part of filename.
LET d = DATE()
LET t = TIME()
LET u = USERNAME()
I used the values d, t, and u to build my filename. When I invoke this application from the command line by calling the executable directly and supply the input data, my output file has the correct username as part of the filename.
When I invoke the application by sending the data to the virtual printer using the lp command, it does not return anything in the username part of the filename. It is just blank.
When the data is sent to the virtual printer, the virtual printer takes that input data and runs a script to process it.
Thanks for any ideas on this.
Regards,
CowboyRT
|