ksublondie has asked for the wisdom of the Perl Monks concerning the following question:
I'm needing to use the Printer module on a linux web server. If I try to print from a script run from the command line it works like a charm. However, if I try that same code (actually the same file, not just a copied portion of the script somewhere else),
I get the following error:my $prn= new Printer('linux' => 'lp'); $prn->print($text);
I'm not a linux expert. I only know enough to be dangerous. I've tracked it down to failing at the following line:Internal exception error - Insecure $ENV{PATH} while running with -T s +witch
in the print sub inside Printer::Unix. Any ideas on how I can get this to work?open PRINTER, $pr_cmd or Carp::croak "Can't open printer connection to $self->{'printer'}{$OSNAME} +: $!";
Yes, I need to be using a specific printer from the server, not the locally installed printers on the workstation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printer module from web interface
by GrandFather (Saint) on Mar 07, 2011 at 23:39 UTC | |
by ksublondie (Friar) on Mar 08, 2011 at 00:13 UTC | |
by GrandFather (Saint) on Mar 08, 2011 at 01:10 UTC | |
by ksublondie (Friar) on Mar 10, 2011 at 23:11 UTC | |
by Anonymous Monk on Mar 11, 2011 at 08:29 UTC | |
|
Re: Printer module from web interface
by wind (Priest) on Mar 08, 2011 at 00:17 UTC |