Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Net::CUPS::IPP

1 view
Skip to first unread message

Alexander van der Leun

unread,
Dec 30, 2009, 11:23:40 AM12/30/09
to
Hello,

For a script that I'm writing I need to know the originating host that sent
a printjob to the CUPS server. Printing is done through IPP.
Now, if I understand correctly, CUPS records the IP address in the
'job-originating-host-name' attribute. Is it possible to get this information
using above mentioned module? And if so, how do I connect to the server to ask
for data about printjob 35?

my $cups = Net::CUPS::IPP->new('35');
my $test = $cups->getAttributeValue('job-originating-host-name');

I need to mention that I'm not very experienced in Perl/OOP programming...
Above snippet of code doesn't seem to work.

Thanks in advance,
Alex

0 new messages