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.
In reply to Printer module from web interface by ksublondie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |