1. I still don't know how my CPAN smoker ended up trying to test this
module last week.
2. What should happen if a CPAN smoker were to pull down the mdule and
attempt to test it? It looks like all tests are now skipped which would
result in a pass.
3. Even after following all of the instructions given, I cannot get my
printer to respond to commands of any kind. It looks like it's a issue with
my printer and not the module. Port 515 is in use but I cannot figure out
what to use for LPD_PRINTER. I changed the printer name before I began
today so that it would be easier to type and it made no difference at all.
C:\Users\mmusgrove\Documents\GitHub\net-printer>SET LPD_PRINTER=MP990
C:\Users\mmusgrove\Documents\GitHub\net-printer>dmake test
C:\strawberry\perl\bin\perl.exe "-Iblib\lib" "-Iblib\arch" test.pl
1..3
ok 1
DEBUG-> Net::Printer::printfile : invoked ...
DEBUG-> Net::Printer::printfile : Filename is ./testprint.txt
DEBUG-> Net::Printer::_nlConvert : invoked ...
DEBUG-> Net::Printer::printfile : Real Data File
C:\Users\MMUSGR~1\Ap
pData\Local\Temp\xTNLgo7APA
DEBUG-> Net::Printer::printfile : Real Control File
C:\Users\MMUSGR~1\Ap
pData\Local\Temp\kkuLVYUqZe
DEBUG-> Net::Printer::printfile : Fake Data File
dfA598blackbox
DEBUG-> Net::Printer::printfile : Fake Control File
cfA598blackbox
DEBUG-> Net::Printer::_lpdInit : invoked ...
DEBUG-> Net::Printer::_lpdCommand : Sending ?MP990
DEBUG-> Net::Printer::_lpdCommand : Got back ::
DEBUG-> Net::Printer::_lpdInit : Return code is 49
ERROR:Net::Printer[717]: Printer MP990 on Server 192.168.1.81 not okay
at test.pl line 42.
DEBUG-> Net::Printer::_lpdInit : Printer said nothing
ERROR:Net::Printer[250]: Printer MP990 on 192.168.1.81 not ready!
at test.pl line 42.
not ok 2
# Failed test at test.pl line 42.
DEBUG-> Net::Printer::_lpdCommand : Sending ?MP990
not ok 3
# Failed test at test.pl line 51.
Please check your default printer for printout.
# Looks like you failed 2 tests of 3.
dmake: Error code 130, while making 'test_dynamic'
Matt
On Mon, Feb 11, 2013 at 4:52 PM, Chris Fuhrman via RT <
bug-Net-Printer@rt.cpan.org> wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=83100 >
>
> Howdy,
>
> Please try the following:
>
> 1) Upgrade your code to the latest version via git
> 2) Try running the included test.pl script after setting up the
> appropriate environmental variables
> 3) If possible, open up the test.pl script and set "debug" to "yes"
> 4) Note that there will be a delay while it does it's thing. I've
> now been successful getting it to work with Strawberry Perl
> 5) Let me know if you run into any problems.
>
> Cheers!
>
> On Sun Feb 10 00:51:35 2013, MMUSGROVE wrote:
> > This simple script doesn't error out but like my previous attempts,
> > nothing is printed.
> >
> > use Net::Printer;
> > my $lp = new Net::Printer(
> > filename => 'C:\Users\mmusgrove\Desktop\chili.txt',
> > printer => '0000006C0B23',
> > server => '192.168.1.81',
> > port => 515,
> > );
> > my $res = $lp->printfile();
> > print "res: $res\n";
> > my $err = $lp->printerror();
> > print "err: $err\n";
> >
> > Output:
> > res: 1
> > err:
> >
>
>