From owner-freebsd-questions@FreeBSD.ORG Wed Sep 24 17:39:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4626B1065693 for ; Wed, 24 Sep 2008 17:39:01 +0000 (UTC) (envelope-from andy.kosela@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by mx1.freebsd.org (Postfix) with ESMTP id 15EDC8FC1C for ; Wed, 24 Sep 2008 17:39:01 +0000 (UTC) (envelope-from andy.kosela@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so12747rvf.43 for ; Wed, 24 Sep 2008 10:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=bCreJ79q+QPJFtZntqXeL7U7pijNapGzt5GIXhYxQXY=; b=wFaRcXsEkhPdZY9K8M2CbzogEcoYsH7g3S0Y6yYRpObYz+x3cbvGUTL10SrqfIDdh1 hN92vHZ+P/n70spLCLIZCHLuGaZMOX41qd2vDrRMqv63WJ+y/+bB6d3Z94qT6rn6wxwv 7gb3g+mYic6wVoI0hux1l/HqEnKFYyZr5hATI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=Ci0oTN1GOokhb2YSPmYEwHq3Cx8erDjpCnylj2Oy0W/STPD13ZgRxJ3wBXE56Evar8 dIhinjtCzVmXiaqRvjtRNm3aDDfw2k/B/fmrT0gHA084tYfs192ZCXT2s3SlUBYPb/SN jWFMgEOjReOVKSydcoFplbspIpsB+nbuRrnFo= Received: by 10.140.136.5 with SMTP id j5mr3633360rvd.27.1222277940417; Wed, 24 Sep 2008 10:39:00 -0700 (PDT) Received: by 10.141.196.7 with HTTP; Wed, 24 Sep 2008 10:39:00 -0700 (PDT) Message-ID: <3cc535c80809241039p4927c100pd9a7b57bb44c92a5@mail.gmail.com> Date: Wed, 24 Sep 2008 19:39:00 +0200 From: "Andy Kosela" Sender: andy.kosela@gmail.com To: "Dan Nelson" In-Reply-To: <20080924151235.GA3284@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3cc535c80809240333s1036386fnaa597267f0cf12aa@mail.gmail.com> <20080924151235.GA3284@dan.emsphone.com> X-Google-Sender-Auth: cd1a6baba7c84620 Cc: freebsd-questions@freebsd.org Subject: Re: Netprint perl script from Handbook doesn't work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2008 17:39:01 -0000 On Wed, Sep 24, 2008 at 5:12 PM, Dan Nelson 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