Date: Wed, 24 Sep 2008 19:39:00 +0200 From: "Andy Kosela" <akosela@andykosela.com> To: "Dan Nelson" <dnelson@allantgroup.com> Cc: freebsd-questions@freebsd.org Subject: Re: Netprint perl script from Handbook doesn't work Message-ID: <3cc535c80809241039p4927c100pd9a7b57bb44c92a5@mail.gmail.com> In-Reply-To: <20080924151235.GA3284@dan.emsphone.com> References: <3cc535c80809240333s1036386fnaa597267f0cf12aa@mail.gmail.com> <20080924151235.GA3284@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 24, 2008 at 5:12 PM, Dan Nelson <dnelson@allantgroup.com> wrote: > In the last episode (Sep 24), Andy Kosela said: >> The netprint perl script provided in the Handbook (9.4.3.2) is not >> working.. or am I missing something: >> >> plotinus:~> cat new.txt | lp.sh >> Can't contact 10.10.21.12: Address family not supported by protocol family at /usr/local/libexec/netprint line 21. > > Can you telnet to that ip address ("telnet 10.10.21.12 9100", or > whatever port you're using)? > Yes, no problem with that (standard HP JetDirect 9100 port). The very same script *IS* working on 6.2-RELEASE. Perl versions on 6.x and 7 seems to be the same: 5.8.8 perl -V on 6.2-RELEASE: config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.8.8/mach -Dprivlib=/usr/local/lib/perl5/5.8.8 -Dman3dir=/usr/local/lib/perl5/5.8.8/perl/man/man3 -Dman1dir=/usr/local/man/man1 -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.8/mach -Dsitelib=/usr/local/lib/perl5/site_perl/5.8.8 -Dscriptdir=/usr/local/bin -Dsiteman3dir=/usr/local/lib/perl5/5.8.8/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -Doptimize=-O2 -fno-strict-aliasing -pipe -Ud_dosuid -Ui_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint' perl -V on 7.0-RELEASE: config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.8.8/mach -Dprivlib=/usr/local/lib/perl5/5.8.8 -Dman3dir=/usr/local/lib/perl5/5.8.8/perl/man/man3 -Dman1dir=/usr/local/man/man1 -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.8/mach -Dsitelib=/usr/local/lib/perl5/site_perl/5.8.8 -Dscriptdir=/usr/local/bin -Dsiteman3dir=/usr/local/lib/perl5/5.8.8/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -Doptimize=-O2 -fno-strict-aliasing -pipe -Ud_dosuid -Ui_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint' -- Andy Kosela ora et labora
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3cc535c80809241039p4927c100pd9a7b57bb44c92a5>