CUPS Spool File read by perl

M

Mr. Chow Wing Siu

Hi,

I am seeking the perl script to read the /var/spool/cups/c* file
to get the info for job originating host and job owner, etc.

Please help. Thanks in advance.
 
P

Paul Lalli

Hi,

I am seeking the perl script to read the /var/spool/cups/c* file
to get the info for job originating host and job owner, etc.

Please help. Thanks in advance.

What part do you need help with? What have you done so far? What didn't
work the way you expected it to?


The following documentations are all relevant to your goal. Have you read
them yet? If not, type the following commands in your shell. Once you've
read them, let us know if you don't understand something in them.

perldoc -f open
perldoc -f readline
perldoc perlre

Note that if you are looking for a pre-built script tailor made for your
goals, you have come to the wrong place. For that, you should be posting
a job listing to one of the job newsgroups (this isn't one of them).

Paul Lalli
 
S

Sherm Pendley

Mr. Chow Wing Siu said:
I am seeking the perl script to read the /var/spool/cups/c* file
to get the info for job originating host and job owner, etc.

Have a look at the Net::CUPS module on CPAN. It looks like a lot of what you
want to do has already been done, although the module docs are pretty thin.

sherm--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top