On Feb 1, 2008 2:08 PM, Grant <[EMAIL PROTECTED]> wrote:
> I am able to print from my remote server to my local printer server
> perfectly with 'lpr file.pdf'.  I'd like to be able to do that from
> within a perl script.  What is the simplest way?
snip

open my $printer, "|-", "/usr/bin/lpr"
    or die "could not open command lpr: $!";

print $printer "do it\n";

close $printer;


See also Net::LPR* and Net::Printer**.

* http://search.cpan.org/dist/Net-LPR/LPR.pod
** http://search.cpan.org/dist/Net-Printer/lib/Net/Printer.pm

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to