Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


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,

Site Timeline