Net::CUPS

Net::CUPS is a CUPS (Common Unix Printing System) interface.
Download

Net::CUPS Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dracken Technology, Inc.
  • Publisher web site:
  • http://search.cpan.org/~dhageman/Net-CUPS-0.55/lib/Net/CUPS.pm

Net::CUPS Tags


Net::CUPS Description

Net::CUPS is a CUPS (Common Unix Printing System) interface. Net::CUPS is a CUPS (Common Unix Printing System) interface.SYNOPSIS use Net::CUPS; my $cups = Net::CUPS->new(); my $printer = $cups->getDestination( "lj4200dn" );Net::CUPS is an object oriented interface to the Common Unix Printing System.METHODSgetDestinationmy $printer = $cups->getDestination( $printer_name );This method takes the name of the printer to acquire. If the printer does not exist it will return nothing.getDestinationsmy @printers = $cups->getDestinations();This method will return an array of destinations currently configured on the cups server.getPasswordmy $password = $cups->getPassword( $prompt )Method to retrieve the password from the user via the password callback.getPPDmy $ppd = $cups->getPPD( $name )Returns a Net::CUPS::PPD object for the default printer or for the specified printer or class.getServermy $server_name = $cups->getServer();A method to return either the hostname or the IP address of the active print server.getUsernamemy $username = $cups->getUsername();This method will return the current username associated with the CUPS transaction.requestDatamy $result = $cups->requestData( $request, $resource, $filename );Send an IPP request to the server. This function is based off the C CUPS function cupsDoRequest and cupsDoRequestFile. The $filename is optional.setPasswordCB$cups->setPasswordCB( $function )Method to set the callback function to be used by getPassword.setServer$cups->setServer( $server_ip );This method will change the current cups server to another hosts.setUsername$cups->setUsername( $username );A method to change the username associated with CUPS interaction. Requirements: · Perl


Net::CUPS Related Software