Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

cpan module to add a new printer in Linux

by Steve_BZ (Hermit)
on May 24, 2012 at 11:46 UTC ( #972226=perlquestion: print w/ replies, xml ) Need Help??
Steve_BZ has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

Do you know if there is a cpan module to add a new printer in Linux? There are plenty of modules to adjust printer settings etc, but is there anything to detect a new printer plugged into the device and provide a simple wizard to add it?

Regards

Steve

Comment on cpan module to add a new printer in Linux
Re: cpan module to add a new printer in Linux
by daxim (Chaplain) on May 24, 2012 at 12:16 UTC

      Hi Daxim,

      Thanks for this. In fact, then, it looks as though the final architecture will be a mixture of:

      • Some udev stuff to detect when something is plugged in;
      • Some cups stuff to actually add it (or not);
      • Some Printer.pm or Wx::Printer.pm stuff to adjust the settings;

      I'll post when I get a better answer.

      Regards

      Steve

Re: cpan module to add a new printer in Linux
by jack123 (Acolyte) on May 24, 2012 at 12:26 UTC
    Please refer : http://search.cpan.org/~srpatt/Printer-0.98/lib/Printer.pm

      How does Printer add the question of adding a new printer to the system printer definitions when plugging the device in? From reading the documentation, it only seems to handle the job of printing to devices known to lpd (or the OS), not the job of printer definitions and printer administration.

      What part of the module documentation did you think would allow Linux users to add new printers?

      "This module is intended to allow perl programs to use and query printers on any computer system capable of running perl. The intention of this module is for a program to be able to use the printer without having to know which operating system is being used."

      Is there a reason you continue to post bare URLs rather than use a link?

      Hi Jack,

      Well, the guys are right, but thanks all the same. Up to now I've been using Wx::Printer, so it will be interesting to see if Printer.pm is any more flexible/can be put to different uses.

      Nil illegitimi carborundum eh?

      Regards

      Steve

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://972226]
Approved by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-10-25 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls